public interface TupleComparator<K,V> extends Serializable
Modifier and Type | Method and Description |
---|---|
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.api.ldap.model.schema.comparators.SerializableComparator<K> |
getKeyComparator()
Gets the comparator used to compare keys.
|
org.apache.directory.api.ldap.model.schema.comparators.SerializableComparator<V> |
getValueComparator()
Gets the binary comparator used to compare valuess.
|
org.apache.directory.api.ldap.model.schema.comparators.SerializableComparator<K> getKeyComparator()
org.apache.directory.api.ldap.model.schema.comparators.SerializableComparator<V> getValueComparator()
int compareKey(K key1, K key2)
key1
- the first key to comparekey2
- the other key to compare to the firstint compareValue(V value1, V value2)
value1
- the first value to comparevalue2
- the other value to compare to the firstCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.