| Modifier and Type | Field and Description |
|---|---|
int |
i
the int value of this
|
| Constructor and Description |
|---|
MyInteger(int _i) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(MyInteger o1,
MyInteger o2) |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
toString() |
public MyInteger(int _i)
_i - the initial integer to set this topublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public boolean equals(java.lang.Object obj)
equals in interface java.util.Comparator<MyInteger>equals in class java.lang.ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()