diff options
Diffstat (limited to 'src/main/resources/python/runtime/java/lang')
| -rw-r--r-- | src/main/resources/python/runtime/java/lang/Integer.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/resources/python/runtime/java/lang/Integer.py b/src/main/resources/python/runtime/java/lang/Integer.py index 052f799..e16e7bb 100644 --- a/src/main/resources/python/runtime/java/lang/Integer.py +++ b/src/main/resources/python/runtime/java/lang/Integer.py @@ -1,3 +1,11 @@ class Integer(object): + @staticmethod def parseInt(value): return int(value) + + def __init__(self, value): + self._value = value + + def equals(self, other): + # TODO: test this properly + return isinstance(other, Integer) and other._value == self._value |
