diff options
Diffstat (limited to 'tests/java5/bridgeMethods/Number.java')
-rw-r--r-- | tests/java5/bridgeMethods/Number.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/java5/bridgeMethods/Number.java b/tests/java5/bridgeMethods/Number.java new file mode 100644 index 000000000..1a866ec19 --- /dev/null +++ b/tests/java5/bridgeMethods/Number.java @@ -0,0 +1,6 @@ +public class Number implements Comparable<Number> { + private int i; + public Number(int i) { this.i = i; } + public int getValue() { return i;} + public int compareTo(Number that) { return this.getValue() - that.getValue(); } +} |