public class MyLong extends Object implements Comparator<MyLong>
| Modifier and Type | Field and Description |
|---|---|
long |
i
the long value of this
|
| Constructor and Description |
|---|
MyLong(long _i) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(MyLong o1,
MyLong o2) |
boolean |
equals(Object obj) |
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic String toString()
toString in class ObjectObject.toString()public boolean equals(Object obj)
equals in interface Comparator<MyLong>equals in class ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()public int compare(MyLong o1, MyLong o2)
compare in interface Comparator<MyLong>o1 - the first MyIntegero2 - the secondMyIntegerComparator.compare(java.lang.Object, java.lang.Object)Copyright © 2018. All rights reserved.