public class NamedHandleObjectComparator extends Object implements Comparator
NamedHandleObject for display to
an end user. The comparison is based on the name of the instances.| Constructor and Description |
|---|
NamedHandleObjectComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Object left,
Object right)
Compares to instances of NamedHandleObject based on their names.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic final int compare(Object left, Object right)
compare in interface Comparatorleft - 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).Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.