K - The type of the key element in the HierarchyV - The type of the value element in the Hierarchypublic class HierarchyTree<K,V> extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
HierarchyTree.HierarchyRelation<K> |
static class |
HierarchyTree.HierarchyRelationship |
| Constructor and Description |
|---|
HierarchyTree(HierarchyTree.HierarchyRelation<K> hierarchyRelation) |
| Modifier and Type | Method and Description |
|---|---|
Optional<V> |
getHierarchyClassValue(K key)
Finds the most specific hierarchy class of key, and returns its value.
|
void |
putInHierarchy(K key,
V value)
Puts the hierarchy class into the Hierarchy tree.
|
public HierarchyTree(HierarchyTree.HierarchyRelation<K> hierarchyRelation)
public void putInHierarchy(K key, V value)
key - The key of the hierarchy class, determines where it is put into the tree.value - The value of the hierarchy class.public Optional<V> getHierarchyClassValue(K key)
key - What to find the most specific hierarchy class of.Copyright © 2017–2021 JBoss by Red Hat. All rights reserved.