diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-11-15 14:20:06 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-11-15 14:20:06 +0000 |
| commit | 549099039ef76a04ed524448c070a0c5328c52b2 (patch) | |
| tree | 14c8eea1b8874d339282d854c612622c73a844e7 /src/main/resources/python/runtime/java/lang/Boolean.py | |
| parent | f4019f5ed78b0d9c0eb7c7a1b4d97e5c83003ff1 (diff) | |
Handle boxing for return statements
Diffstat (limited to 'src/main/resources/python/runtime/java/lang/Boolean.py')
| -rw-r--r-- | src/main/resources/python/runtime/java/lang/Boolean.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/resources/python/runtime/java/lang/Boolean.py b/src/main/resources/python/runtime/java/lang/Boolean.py new file mode 100644 index 0000000..6e08f29 --- /dev/null +++ b/src/main/resources/python/runtime/java/lang/Boolean.py @@ -0,0 +1,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)
\ No newline at end of file |
