Method
compare
Compares the two specified objects to determine their relative ordering. The ordering implied by the return value of this method for all possible pairs of (object1, object2) should form an equivalence relation . This means that compare(a,a) returns zero for all {@code
(T object1, T object2)
Source from the content-addressed store, hash-verified
| 53 | * if objects are not of the correct type. |
| 54 | */ |
| 55 | public int compare(T object1, T object2); |
| 56 | |
| 57 | /** |
| 58 | * Compares this {@code Comparator} with the specified {@code Object} and indicates whether they |
Implementers 15
GeofenceCodenameOne/src/com/codename1/location ObjectsCodenameOne/src/com/codename1/compat/j iscripts/cn1playground/src/html/playgro FloatPorts/CLDC11/src/java/lang/Float.java ShortPorts/CLDC11/src/java/lang/Short.java StringPorts/CLDC11/src/java/lang/String.java BytePorts/CLDC11/src/java/lang/Byte.java DoublePorts/CLDC11/src/java/lang/Double.java IntegerPorts/CLDC11/src/java/lang/Integer.jav LongPorts/CLDC11/src/java/lang/Long.java ObjectsPorts/CLDC11/src/java/util/Objects.jav