aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/python/runtime/java/lang/Integer.py
blob: 48d65568e46bf3e19fe97c6e6b7eb727e707a5d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class Integer(object):
    def __init__(self, value):
        self._value = value
    
    def equals__Object__boolean(self, other):
        # TODO: test this properly
        return isinstance(other, Integer) and other._value == self._value

    def __str__(self):
        return str(self._value)

    def __repr__(self):
        return str(self)