Please solve the programming task below using a self-contained code snippet in a markdown code block.

Given an array of integers nums and an integer limit, return the size of the longest non-empty subarray such that the absolute difference between any two elements of this subarray is less than or equal to limit.
 
Please complete the following python code precisely:
```python
class Solution:
    def longestSubarray(self, nums: List[int], limit: int) -> int:
```