public class KeyComparator4Long
extends java.lang.Object
implements java.util.Comparator
KeyComparator4Long
class compares two array elementsConstructor and Description |
---|
KeyComparator4Long()
The constructor
KeyComparator4Long creates a new instance(object) of the class. |
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.Object e1,
java.lang.Object e2)
The method
compare compares the keys of two KeyElements objects. |
public KeyComparator4Long()
KeyComparator4Long
creates a new instance(object) of the class.public int compare(java.lang.Object e1, java.lang.Object e2)
compare
compares the keys of two KeyElements objects.compare
in interface java.util.Comparator
e1
- KeyElement4Long.e2
- KeyElement4Long.