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