public class KeyComparator4LongString
extends java.lang.Object
implements java.util.Comparator
KeyComparator4LongString
class compares two array elementsConstructor and Description |
---|
KeyComparator4LongString()
The constructor
KeyComparator4LongString 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 KeyComparator4LongString()
KeyComparator4LongString
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
- KeyElement4LongString.e2
- KeyElement4LongString.