public class OEComparator
extends java.lang.Object
implements java.util.Comparator
The class and name comparisons order accented characters according to the current locale. The comparison is case-insensitive.
The constructor takes a key value that determines how to sort. These constants are defined in the ResultModifier class.
SORTBY_KEY_UNSORTED (0) - No sorting is required. Objects are returned in the same order as sent by the server.
SORTBY_KEY_TYPE (1) - Sort by class only.
SORTBY_KEY_NAME (2) - Sort by name only.
SORTBY_KEY_TYPE_NAME (3) - Sort first by class, then by name.
This comparator does not impose a total ordering. Therefore it can be used to sort a List, but not a SortedSet.
| Constructor and Description |
|---|
OEComparator(int key,
AdminNamespace namespace) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compares its two arguments for order.
|
public OEComparator(int key,
AdminNamespace namespace)
public int compare(java.lang.Object o1,
java.lang.Object o2)
throws java.lang.ClassCastException
compare in interface java.util.Comparatorjava.lang.ClassCastException - if the arguments' types prevent them from
being compared by this Comparator.
API Documentation Copyright © 1998-2004 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated ${TODAY} ${TSTAMP}.