|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.core.partition.impl.btree.KeyOnlyComparator<K,V>
public class KeyOnlyComparator<K,V>
A TupleComparator that compares keys only.
| Constructor Summary | |
|---|---|
KeyOnlyComparator(org.apache.directory.shared.ldap.model.schema.comparators.SerializableComparator<K> comparator)
|
|
| Method Summary | |
|---|---|
int |
compareKey(K key1,
K key2)
Compares key Object to determine their sorting order returning a value = to, < or > than 0. |
int |
compareValue(V value1,
V value2)
Comparse value Objects to determine their sorting order returning a value = to, < or > than 0. |
org.apache.directory.shared.ldap.model.schema.comparators.SerializableComparator<K> |
getKeyComparator()
Gets the comparator used to compare keys. |
org.apache.directory.shared.ldap.model.schema.comparators.SerializableComparator<V> |
getValueComparator()
Will throw an UnsupportedOperationException every time. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KeyOnlyComparator(org.apache.directory.shared.ldap.model.schema.comparators.SerializableComparator<K> comparator)
| Method Detail |
|---|
public org.apache.directory.shared.ldap.model.schema.comparators.SerializableComparator<K> getKeyComparator()
getKeyComparator in interface TupleComparator<K,V>public org.apache.directory.shared.ldap.model.schema.comparators.SerializableComparator<V> getValueComparator()
getValueComparator in interface TupleComparator<K,V>
public int compareKey(K key1,
K key2)
compareKey in interface TupleComparator<K,V>key1 - the first key to comparekey2 - the other key to compare to the first
public int compareValue(V value1,
V value2)
compareValue in interface TupleComparator<K,V>value1 - the first value to comparevalue2 - the other value to compare to the first
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||