|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.commands.common.NamedHandleObjectComparator
public class NamedHandleObjectComparator
Comparator for instances of NamedHandleObject
for display to
an end user. The comparison is based on the name of the instances.
Constructor Summary | |
---|---|
NamedHandleObjectComparator()
|
Method Summary | |
---|---|
int |
compare(java.lang.Object left,
java.lang.Object right)
Compares to instances of NamedHandleObject based on their names. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
public NamedHandleObjectComparator()
Method Detail |
---|
public final int compare(java.lang.Object left, java.lang.Object right)
compare
in interface java.util.Comparator
left
- The first obect to compare; may be null
.right
- The second object to compare; may be null
.
-1
if left
is null
and right
is not null
;
0
if they are both null
;
1
if left
is not null
and right
is null
. Otherwise, the
result of left.compareTo(right)
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |