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

Given an integer array nums, return the largest integer that only occurs once. If no integer occurs once, return -1.
 
Please complete the following python code precisely:
```python
class Solution:
    def largestUniqueNumber(self, nums: List[int]) -> int:
```