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, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public String toString()
toString
in class Object
Object.toString()
public boolean equals(Object obj)
equals
in interface Comparator<MyLong>
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.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.