blob: 4504cb1ef7b381738f03628d894d72cbcb7f3a46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
class Integer(object):
@staticmethod
def valueOf__int__Integer(value):
return value
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)
|