Package org.aksw.facete.v3.api
Class TreeDataMap<K,V>
java.lang.Object
org.aksw.facete.v3.api.TreeDataMap<K,V>
- All Implemented Interfaces:
Serializable
A stripped down copy of Vaadin's TreeData class.
Used to capture hierarchical projections of FacetPaths.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddItems(Collection<K> rootItems, Function<K, ? extends Collection<K>> childItemProvider) addItems(K parent, Collection<K> items) addRootItems(Collection<K> items) addRootItems(Stream<K> items) addRootItems(K... items) clear()Return a new instance of this tree structure.booleangetChildren(K item) <O> TreeDataMap<O,V> voidmoveAfterSibling(K item, K sibling) putAll(TreeDataMap<K, V> other) voidAdd an item to this structure by recursively adding its ancestors first.removeItem(K item) voidtoString()
-
Constructor Details
-
TreeDataMap
public TreeDataMap()
-
-
Method Details
-
mapKeys
-
get
-
put
-
putAll
-
cloneTree
Return a new instance of this tree structure. Does not copy the elements of type T. -
addItems
public TreeDataMap<K,V> addItems(Collection<K> rootItems, Function<K, ? extends Collection<K>> childItemProvider) -
putItem
Add an item to this structure by recursively adding its ancestors first. -
toString
-
addRootItems
-
addRootItems
-
addRootItems
-
addItem
-
addItems
-
addItems
-
addItems
-
removeItem
-
clear
-
getRootItems
-
getChildren
-
getParent
-
setParent
-
moveAfterSibling
-
contains
-