public class MyInteger extends Object implements Comparator<MyInteger>
public MyInteger(int _i)
_i - the initial integer to set this topublic String toString()
toString in class ObjectObject.toString()public boolean equals(Object obj)
equals in interface Comparator<MyInteger>equals in class ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()public int compare(MyInteger o1, MyInteger o2)
compare in interface Comparator<MyInteger>o1 - the first MyIntegero2 - the secondMyIntegerComparator.compare(java.lang.Object, java.lang.Object)Copyright © 2013. All Rights Reserved.