public final class KeyValueComparator extends Object implements Comparator<org.kuali.rice.core.api.util.KeyValue>, Serializable
KeyValue instances. Useful when sorting a list of for
a values finder| Constructor and Description |
|---|
KeyValueComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(org.kuali.rice.core.api.util.KeyValue o1,
org.kuali.rice.core.api.util.KeyValue o2)
Compares the label of
o1 to the label of o2. |
static Comparator<org.kuali.rice.core.api.util.KeyValue> |
getInstance()
Gets an instance of a
KeyValueComparator. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic int compare(org.kuali.rice.core.api.util.KeyValue o1,
org.kuali.rice.core.api.util.KeyValue o2)
o1 to the label of o2.
compare in interface Comparator<org.kuali.rice.core.api.util.KeyValue>public static final Comparator<org.kuali.rice.core.api.util.KeyValue> getInstance()
KeyValueComparator.Copyright © 2013 The Kuali Foundation. All Rights Reserved.