aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/python/runtime/java/lang/Integer.py
blob: e16e7bb63d703de81e1bfc225161c56c3d196334 (plain)
1
2
3
4
5
6
7
8
9
10
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