aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/python/runtime/java/lang/Boolean.py
blob: 6e08f2955f4dacfe89ed31ec7400ae5576192385 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class Boolean(object):
    def __init__(self, value):
        self._value = value

    def equals(self, other):
        # TODO: test this properly
        return isinstance(other, Boolean) and other._value == self._value

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

    def __repr__(self):
        return str(self)