|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.isti.util.ListComparator
Class ListComparator implements a comparator that determines order using a given list of objects.
| Field Summary | |
protected java.util.List |
comparatorListObj
|
protected int |
comparatorListSize
|
| Constructor Summary | |
ListComparator(java.util.List listObj)
Creates a comparator that determines order using the given list of objects. |
|
ListComparator(java.lang.Object[] objArr)
Creates a comparator that determines order using the given array of objects. |
|
| Method Summary | |
int |
compare(java.lang.Object obj1,
java.lang.Object obj2)
Compares its two arguments for order via their position in the list. |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this Comparator. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected final java.util.List comparatorListObj
protected final int comparatorListSize
| Constructor Detail |
public ListComparator(java.util.List listObj)
listObj - the list of objects to use.public ListComparator(java.lang.Object[] objArr)
objArr - the array of objects to use.| Method Detail |
public int compare(java.lang.Object obj1,
java.lang.Object obj2)
compare in interface java.util.Comparatorobj1 - the first object to be compared.obj2 - the second object to be compared.
java.lang.ClassCastException - if the arguments' types prevent them
from being compared by this Comparator.public boolean equals(java.lang.Object obj)
equals in interface java.util.Comparatorobj - the reference object with which to compare.
true only if the specified object is also
a comparator and it imposes the same ordering as this
comparator.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||