|
Apache JMeter | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jorphan.collections.HashTree
org.apache.jorphan.collections.ListedHashTree
ListedHashTree is a different implementation of the HashTree
collection class. In the ListedHashTree, the order in which values are added
is preserved (not to be confused with SortedHashTree, which sorts
the order of the values using the compare() function). Any listing of nodes
or iteration through the list of nodes of a ListedHashTree will be given in
the order in which the nodes were added to the tree.
HashTree,
Serialized Form| Nested Class Summary |
| Nested classes inherited from class java.util.Map |
Map.Entry |
| Field Summary |
| Fields inherited from class org.apache.jorphan.collections.HashTree |
data |
| Constructor Summary | |
ListedHashTree()
|
|
ListedHashTree(Collection keys)
|
|
ListedHashTree(Object key)
|
|
ListedHashTree(Object[] keys)
|
|
| Method Summary | |
HashTree |
add(Object key)
Adds an key into the HashTree at the current level. |
void |
clear()
Clears the HashTree of all contents. |
Object |
clone()
Create a clone of this HashTree. |
HashTree |
createNewTree()
Creates a new tree. |
HashTree |
createNewTree(Collection values)
Creates a new tree. |
HashTree |
createNewTree(Object key)
Creates a new tree. |
boolean |
equals(Object o)
Compares all objects in the tree and verifies that the two trees contain the same objects at the same tree levels. |
Object[] |
getArray()
Gets an array of all keys in the current HashTree node. |
int |
hashCode()
Returns a hashcode for this HashTree. |
Set |
keySet()
Returns a Set of all the keys in the top-level of this HashTree. |
Collection |
list()
Gets a Collection of all keys in the current HashTree node. |
Object |
remove(Object key)
Removes the entire branch specified by the given key. |
void |
replace(Object currentKey,
Object newKey)
Finds the given current key, and replaces it with the given new key. |
void |
set(Object key,
Collection values)
Sets a key and its values in the HashTree. |
void |
set(Object key,
HashTree t)
Sets a key into the current tree and assigns it a HashTree as its subtree. |
void |
set(Object key,
Object value)
Sets a key and it's value in the HashTree. |
void |
set(Object key,
Object[] values)
Sets a key and its values in the HashTree. |
int |
size()
Returns the number of top-level entries in the HashTree. |
| Methods inherited from class org.apache.jorphan.collections.HashTree |
add, add, add, add, add, add, add, add, add, add, add, add, add, addTreePath, cloneTree, containsKey, containsValue, entrySet, get, getArray, getArray, getArray, getTree, getTree, getTree, getTreePath, isEmpty, list, list, list, put, putAll, search, set, set, set, set, set, toString, traverse, values |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ListedHashTree()
public ListedHashTree(Object key)
public ListedHashTree(Collection keys)
public ListedHashTree(Object[] keys)
| Method Detail |
public Object clone()
HashTree
clone in class HashTree
public void set(Object key,
Object value)
HashTree
set in class HashTreekey - key to be set upvalue - value to be set up as a key in the secondary node
public void set(Object key,
HashTree t)
HashTree
set in class HashTreekey - key to be set upt - HashTree that the key maps to
public void set(Object key,
Object[] values)
HashTree
set in class HashTreekey - Key to be set upvalues - Array of objects to be added as keys in the secondary node
public void set(Object key,
Collection values)
HashTree
set in class HashTreekey - key to be set upvalues - Collection of objects to be added as keys in the secondary
node
public void replace(Object currentKey,
Object newKey)
HashTree
replace in class HashTreepublic HashTree createNewTree()
HashTree
createNewTree in class HashTreepublic HashTree createNewTree(Object key)
HashTree
createNewTree in class HashTreepublic HashTree createNewTree(Collection values)
HashTree
createNewTree in class HashTreepublic HashTree add(Object key)
HashTree
add in class HashTreekey - key to be added to HashTreepublic Collection list()
HashTree
list in class HashTreepublic Object remove(Object key)
HashTree
remove in interface Mapremove in class HashTreeMap.remove(Object)public Object[] getArray()
HashTree
getArray in class HashTreepublic int hashCode()
HashTree
hashCode in interface MaphashCode in class HashTreeObject.hashCode()public boolean equals(Object o)
HashTree
equals in interface Mapequals in class HashTreeo - Object to be compared againstObject.equals(Object)public Set keySet()
HashTree
keySet in interface MapkeySet in class HashTreeMap.keySet()public int size()
HashTree
size in interface Mapsize in class HashTreeMap.size()public void clear()
HashTree
clear in interface Mapclear in class HashTreeMap.clear()
|
Apache JMeter | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||