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

Given an integer x, return true if x is a palindrome, and false otherwise.
 
Please complete the following python code precisely:
```python
class Solution:
    def isPalindrome(self, x: int) -> bool:
```