From b69c8f7c8e2c16aade681ceaae046456a5ef2a85 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 6 Jan 2016 08:31:13 +0000 Subject: Partially implement method overloading --- src/main/resources/python/runtime/java/lang/Integer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/resources/python') diff --git a/src/main/resources/python/runtime/java/lang/Integer.py b/src/main/resources/python/runtime/java/lang/Integer.py index 8ea30a4..0cf55af 100644 --- a/src/main/resources/python/runtime/java/lang/Integer.py +++ b/src/main/resources/python/runtime/java/lang/Integer.py @@ -1,12 +1,12 @@ class Integer(object): @staticmethod - def parseInt(value): + def parseInt_1(value): return int(value) def __init__(self, value): self._value = value - def equals(self, other): + def equals_1(self, other): # TODO: test this properly return isinstance(other, Integer) and other._value == self._value -- cgit v1.2.3