aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/python/runtime/java/lang/Integer.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/resources/python/runtime/java/lang/Integer.py')
-rw-r--r--src/main/resources/python/runtime/java/lang/Integer.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/resources/python/runtime/java/lang/Integer.py b/src/main/resources/python/runtime/java/lang/Integer.py
index e16e7bb..8ea30a4 100644
--- a/src/main/resources/python/runtime/java/lang/Integer.py
+++ b/src/main/resources/python/runtime/java/lang/Integer.py
@@ -9,3 +9,9 @@ class Integer(object):
def equals(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) \ No newline at end of file