public class SortedHashTree extends HashTree implements Serializable
HashTree
collection class. In the SortedHashTree, the ordering of values in the tree
is made explicit via the compare() function of objects added to the tree.
This works in exactly the same fashion as it does for a SortedSet.| Constructor and Description |
|---|
SortedHashTree() |
SortedHashTree(Collection<?> keys) |
SortedHashTree(Collection<?> keys,
Comparator<? super Object> comper) |
SortedHashTree(Comparator<? super Object> comper) |
SortedHashTree(Object key) |
SortedHashTree(Object[] keys) |
SortedHashTree(Object[] keys,
Comparator<? super Object> comper) |
SortedHashTree(Object key,
Comparator<? super Object> comper) |
| Modifier and Type | Method and Description |
|---|---|
protected HashTree |
createNewTree()
Creates a new tree.
|
protected HashTree |
createNewTree(Collection<?> values)
Creates a new tree.
|
protected HashTree |
createNewTree(Object key)
Creates a new tree.
|
add, add, add, add, add, add, add, add, add, add, add, add, add, add, addTreePath, clear, clone, cloneTree, containsKey, containsValue, entrySet, equals, get, getArray, getArray, getArray, getArray, getTree, getTree, getTree, getTreePath, hashCode, isEmpty, keySet, list, list, list, list, put, putAll, remove, replaceKey, search, set, set, set, set, set, set, set, set, set, size, toString, traverse, valuespublic SortedHashTree()
public SortedHashTree(Comparator<? super Object> comper)
public SortedHashTree(Object key)
public SortedHashTree(Object key, Comparator<? super Object> comper)
public SortedHashTree(Collection<?> keys)
public SortedHashTree(Collection<?> keys, Comparator<? super Object> comper)
public SortedHashTree(Object[] keys)
public SortedHashTree(Object[] keys, Comparator<? super Object> comper)
protected HashTree createNewTree()
createNewTree in class HashTreeprotected HashTree createNewTree(Object key)
createNewTree in class HashTreekey - object to use as the key for the top levelHashTreeprotected HashTree createNewTree(Collection<?> values)
createNewTree in class HashTreevalues - objects to be added to the new HashTreeHashTreeCopyright © 1998-2016 Apache Software Foundation. All Rights Reserved.