public class KeyComparator4KeyWord
extends java.lang.Object
implements java.util.Comparator
KeyComparator
class compares two array elements.Constructor and Description |
---|
KeyComparator4KeyWord()
The constructor
KeyComparator4KeyWord 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 KeyComparator4KeyWord()
KeyComparator4KeyWord
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 objectscompare
in interface java.util.Comparator
e1
- List4KeyWord.e2
- List4KeyWord.