Package org.aksw.facete.v3.api
Class TreeData<T>
java.lang.Object
org.aksw.facete.v3.api.TreeData<T>
- 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<T> rootItems, Function<T, ? extends Collection<T>> childItemProvider) addItems(T parent, Collection<T> items) addRootItems(Collection<T> items) addRootItems(Stream<T> items) addRootItems(T... items) clear()Return a new instance of this tree structure.booleangetChildren(T item) <O> TreeData<O>voidmoveAfterSibling(T item, T sibling) voidAdd an item to this structure by recursively adding its ancestors first.removeItem(T item) voidtoString()
-
Constructor Details
-
TreeData
public TreeData()
-
-
Method Details
-
map
-
cloneTree
Return a new instance of this tree structure. Does not copy the elements of type T. -
addItems
public TreeData<T> addItems(Collection<T> rootItems, Function<T, ? extends Collection<T>> 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
-