Index
All Classes and Interfaces|All Packages|Serialized Form
A
- accept(Visitor<T>) - Method in interface io.github.astrapi69.gen.tree.api.ITreeNode
- accept(SimpleTreeNode<T, K>, Visitor<SimpleTreeNode<T, K>>) - Static method in class io.github.astrapi69.gen.tree.handler.SimpleTreeNodeHandlerExtensions
-
Accepts the given visitor that provides a custom algorithm for processing all elements
- accept(SimpleTreeNode<T, K>, Visitor<SimpleTreeNode<T, K>>, boolean) - Static method in class io.github.astrapi69.gen.tree.handler.SimpleTreeNodeHandlerExtensions
-
Accepts the given visitor that provides a custom algorithm for processing all elements
- accept(Visitor<SimpleTreeNode<V, K>>) - Method in class io.github.astrapi69.gen.tree.SimpleTreeNode
- accept(T, Visitor<T>) - Static method in class io.github.astrapi69.gen.tree.handler.BaseTreeNodeVisitorHandlerExtensions
-
Accepts the given visitor that provides a custom algorithm for processing all elements
- accept(T, Visitor<T>) - Static method in class io.github.astrapi69.gen.tree.handler.TreeNodeVisitorHandlerExtensions
-
Accepts the given visitor that provides a custom algorithm for processing all elements
- accept(T, Visitor<T>, boolean) - Static method in class io.github.astrapi69.gen.tree.handler.BaseTreeNodeVisitorHandlerExtensions
-
Accepts the given visitor that provides a custom algorithm for processing all elements
- accept(T, Visitor<T>, boolean) - Static method in class io.github.astrapi69.gen.tree.handler.TreeNodeVisitorHandlerExtensions
-
Accepts the given visitor that provides a custom algorithm for processing all elements
- add(T) - Method in class io.github.astrapi69.gen.tree.binary.GenericBinaryTree
-
Adds the given value to the binary tree at the right position
- addChild(SimpleTreeNode<T, K>, SimpleTreeNode<T, K>) - Static method in class io.github.astrapi69.gen.tree.handler.SimpleTreeNodeHandlerExtensions
-
Adds the given child
SimpleTreeNodeobject to the first given parentSimpleTreeNodeobject - addChild(TreeIdNode<T, K>) - Method in class io.github.astrapi69.gen.tree.TreeIdNode
-
Adds the child.
- addChild(T) - Method in interface io.github.astrapi69.gen.tree.api.ITreeNode
- addChild(T, int) - Method in interface io.github.astrapi69.gen.tree.api.ITreeNode
- addChild(T, T) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
- addChild(T, T, int) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
- addChildren(SimpleTreeNode<T, K>, Collection<SimpleTreeNode<T, K>>) - Static method in class io.github.astrapi69.gen.tree.handler.SimpleTreeNodeHandlerExtensions
-
Adds all the given children from the first given parent
SimpleTreeNodeobject - addChildren(Collection<T>) - Method in interface io.github.astrapi69.gen.tree.api.ITreeNode
- addChildren(T, Collection<T>) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
-
Adds all the given children from the first given parent
ITreeNodeobject - addRecursively(LinkedNode<T>, T) - Method in class io.github.astrapi69.gen.tree.binary.GenericBinaryTree
-
Adds the given value to the binary tree at the right position
B
- BaseMergeTreeNodesVisitor<V,
K, T extends IBaseTreeNode<V, K, T>> - Class in io.github.astrapi69.gen.tree.visitor -
This visitor visits all
IBaseTreeNodeobjects and merges all nodes to the givenIBaseTreeNodeobject. - BaseMergeTreeNodesVisitor(T, MergeStrategy) - Constructor for class io.github.astrapi69.gen.tree.visitor.BaseMergeTreeNodesVisitor
-
Instantiates a new
BaseMergeTreeNodesVisitorobject - BaseTreeNode<V,
K> - Class in io.github.astrapi69.gen.tree -
The generic class
BaseTreeNodehave a generic id and value object - BaseTreeNode(V) - Constructor for class io.github.astrapi69.gen.tree.BaseTreeNode
-
Instantiates a new
BaseTreeNodeobject - BaseTreeNodeTransformer - Class in io.github.astrapi69.gen.tree.convert
-
The class
BaseTreeNodeTransformerprovides algorithms for converting between theBaseTreeNodeobjects andTreeIdNodeobjects. - BaseTreeNodeVisitorHandlerExtensions - Class in io.github.astrapi69.gen.tree.handler
-
The class
BaseTreeNodeVisitorHandlerExtensionsprovides handler methods for the visit all field in the classIBaseTreeNode - BaseTreeNodeVisitorHandlerExtensions() - Constructor for class io.github.astrapi69.gen.tree.handler.BaseTreeNodeVisitorHandlerExtensions
C
- clearAll() - Method in interface io.github.astrapi69.gen.tree.api.ITreeNode
- clearAll(SimpleTreeNode<T, K>) - Static method in class io.github.astrapi69.gen.tree.handler.SimpleTreeNodeHandlerExtensions
-
Removes all the descendants from the given
SimpleTreeNodeobject - clearAll(T) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
-
Removes all the descendants from the given
ITreeNodeobject - clearChildren() - Method in interface io.github.astrapi69.gen.tree.api.ITreeNode
- clearChildren(SimpleTreeNode<T, K>) - Static method in class io.github.astrapi69.gen.tree.handler.SimpleTreeNodeHandlerExtensions
-
Removes all the children from the given
SimpleTreeNodeobject - clearChildren(T) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
-
Removes all the children from the given
ITreeNodeobject - contains(SimpleTreeNode<T, K>, SimpleTreeNode<T, K>) - Static method in class io.github.astrapi69.gen.tree.handler.SimpleTreeNodeHandlerExtensions
-
Checks if the second given
SimpleTreeNodeobject is a descendant of the first givenSimpleTreeNodeobject - contains(T) - Method in interface io.github.astrapi69.gen.tree.api.ITreeNode
- contains(T) - Method in class io.github.astrapi69.gen.tree.binary.GenericBinaryTree
-
Checks if the given value exists in this binary tree object
- contains(T, T) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
- containsAll(SimpleTreeNode<T, K>, Collection<SimpleTreeNode<T, K>>) - Static method in class io.github.astrapi69.gen.tree.handler.SimpleTreeNodeHandlerExtensions
-
Checks if the given
Collectionobject ofSimpleTreeNodeobjects are descendants of the first givenSimpleTreeNodeobject - containsAll(Collection<T>) - Method in interface io.github.astrapi69.gen.tree.api.ITreeNode
- containsAll(T, Collection<T>) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
-
Checks if the given
Collectionobject ofITreeNodeobjects are descendants of the first givenITreeNodeobject - containsRecursively(LinkedNode<T>, T) - Method in class io.github.astrapi69.gen.tree.binary.GenericBinaryTree
-
Checks recursively if the given value exists in this binary tree object
F
- findAllByValue(SimpleTreeNode<T, K>, T) - Static method in class io.github.astrapi69.gen.tree.handler.SimpleTreeNodeHandlerExtensions
-
Find all
SimpleTreeNodeobjects from the first givenSimpleTreeNodeobject that serves as the search target, that have the same value as the given value - findAllByValue(T, V) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
- findAllByValue(V) - Method in interface io.github.astrapi69.gen.tree.api.ITreeNode
- findById(K) - Method in interface io.github.astrapi69.gen.tree.api.IBaseTreeNode
- findById(T, K) - Static method in class io.github.astrapi69.gen.tree.handler.IBaseTreeNodeHandlerExtensions
-
Find the occurrence of
IBaseTreeNodeobject from the given key object that serves as the search target - findByValue(SimpleTreeNode<T, K>, T) - Static method in class io.github.astrapi69.gen.tree.handler.SimpleTreeNodeHandlerExtensions
-
Find the first occurrence of
SimpleTreeNodeobject from the first givenSimpleTreeNodeobject that serves as the search target, that have the same value as the given value - findByValue(T, V) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
- findByValue(V) - Method in interface io.github.astrapi69.gen.tree.api.ITreeNode
- findFirstOccurenceOfDescendant(T, T) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
-
Find the occurrence of
ITreeNodeobject from the given possible descendant object that serves as the search target - FindValuesBaseTreeNodeVisitor<V,
K> - Class in io.github.astrapi69.gen.tree.visitor -
This visitor visits all
BaseTreeNodeobjects and checks if the value equals with the value of this visitor - FindValuesBaseTreeNodeVisitor(V) - Constructor for class io.github.astrapi69.gen.tree.visitor.FindValuesBaseTreeNodeVisitor
-
Instantiates a new
FindValuesBaseTreeNodeVisitorobject - FindValuesIBaseTreeNodeVisitor<V,
K, T extends IBaseTreeNode<V, K, T>> - Class in io.github.astrapi69.gen.tree.visitor -
This visitor visits all
IBaseTreeNodeobjects and checks if the value equals with the value of this visitor - FindValuesIBaseTreeNodeVisitor(V) - Constructor for class io.github.astrapi69.gen.tree.visitor.FindValuesIBaseTreeNodeVisitor
-
Instantiates a new
FindValuesIBaseTreeNodeVisitorobject - first - Variable in class io.github.astrapi69.gen.tree.binary.GenericBinaryTree
-
the first
LinkedNodeobject is also the root object
G
- GenericBinaryTree<T> - Class in io.github.astrapi69.gen.tree.binary
-
The abstract class
GenericBinaryTreerepresents a generic binary tree. - GenericBinaryTree() - Constructor for class io.github.astrapi69.gen.tree.binary.GenericBinaryTree
- getAllLeftSiblings() - Method in class io.github.astrapi69.gen.tree.SimpleTreeNode
-
Gets all the left siblings from this node
- getAllLeftSiblings(SimpleTreeNode<T, K>) - Static method in class io.github.astrapi69.gen.tree.handler.SimpleTreeNodeHandlerExtensions
-
Gets all the left siblings from the given
SimpleTreeNodeobject - getAllRightSiblings() - Method in class io.github.astrapi69.gen.tree.SimpleTreeNode
-
Gets all the right siblings from this node
- getAllRightSiblings(SimpleTreeNode<T, K>) - Static method in class io.github.astrapi69.gen.tree.handler.SimpleTreeNodeHandlerExtensions
-
Gets all the right siblings from the given
SimpleTreeNodeobject - getAllSiblings() - Method in interface io.github.astrapi69.gen.tree.api.ITreeNode
- getAllSiblings() - Method in class io.github.astrapi69.gen.tree.SimpleTreeNode
-
Gets all the siblings from this node
- getAllSiblings(SimpleTreeNode<T, K>) - Static method in class io.github.astrapi69.gen.tree.handler.SimpleTreeNodeHandlerExtensions
-
Returns all siblings of the given
SimpleTreeNodeobject in the parent's children list - getAllSiblings(T) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
-
Returns all siblings of the given
ITreeNodeobject in the parent's children list - getChildAt(int) - Method in interface io.github.astrapi69.gen.tree.api.ITreeNode
- getChildAt(T, int) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
- getChildCount() - Method in interface io.github.astrapi69.gen.tree.api.ITreeNode
- getChildCount() - Method in class io.github.astrapi69.gen.tree.TreeIdNode
-
Gets the child count.
- getChildCount(SimpleTreeNode<T, K>) - Static method in class io.github.astrapi69.gen.tree.handler.SimpleTreeNodeHandlerExtensions
-
Gets the child count from the given
SimpleTreeNodeobject - getChildCount(T) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
-
Gets the child count from the given
ITreeNodeobject - getChildIndex(T) - Method in interface io.github.astrapi69.gen.tree.api.ITreeNode
- getChildIndex(T, T) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
-
Gets the index of the given child from the given index from the first given parent
ITreeNodeobject - getChildren() - Method in class io.github.astrapi69.gen.tree.BaseTreeNode
-
Gets the children of this node
- getChildren() - Method in class io.github.astrapi69.gen.tree.SimpleTreeNode
-
Gets the children
- getChildren() - Method in class io.github.astrapi69.gen.tree.TreeNode
- getChildren(SimpleTreeNode<T, K>) - Static method in class io.github.astrapi69.gen.tree.handler.SimpleTreeNodeHandlerExtensions
-
Gets the children from the given
SimpleTreeNodeobject - getFirst() - Method in class io.github.astrapi69.gen.tree.binary.LinkedNode
-
Gets the first
LinkedNodeobject - getLevel() - Method in interface io.github.astrapi69.gen.tree.api.ITreeNode
- getLevel() - Method in class io.github.astrapi69.gen.tree.SimpleTreeNode
-
Returns the distance from the root to this node.
- getLevel(SimpleTreeNode<T, K>) - Static method in class io.github.astrapi69.gen.tree.handler.SimpleTreeNodeHandlerExtensions
-
Returns the distance from the root to the given
SimpleTreeNodeobject. - getLevel(T) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
-
Returns the distance from the root to the given
ITreeNodeobject. - getNextCount() - Method in class io.github.astrapi69.gen.tree.binary.LinkedNode
-
Gets the next count.
- getNextLinkedNodes() - Method in class io.github.astrapi69.gen.tree.binary.LinkedNode
-
Gets all next
LinkedNodefrom the current linked node - getNextSibling() - Method in interface io.github.astrapi69.gen.tree.api.ITreeNode
- getNextSibling(SimpleTreeNode<T, K>) - Static method in class io.github.astrapi69.gen.tree.handler.SimpleTreeNodeHandlerExtensions
-
Returns the next sibling of the given
SimpleTreeNodeobject in the parent's children list. - getNextSibling(T) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
-
Returns the next sibling of the given
ITreeNodeobject in the parent's children list. - getPreviousSibling() - Method in interface io.github.astrapi69.gen.tree.api.ITreeNode
- getPreviousSibling(SimpleTreeNode<T, K>) - Static method in class io.github.astrapi69.gen.tree.handler.SimpleTreeNodeHandlerExtensions
-
Returns the previous sibling of the given
SimpleTreeNodeobject in the parent's children list. - getPreviousSibling(T) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
-
Returns the previous sibling of the given
ITreeNodeobject in the parent's children list. - getRoot() - Method in interface io.github.astrapi69.gen.tree.api.ITreeNode
- getRoot() - Method in class io.github.astrapi69.gen.tree.SimpleTreeNode
-
Gets the root
SimpleTreeNodeobject - getRoot(SimpleTreeNode<T, K>) - Static method in class io.github.astrapi69.gen.tree.handler.SimpleTreeNodeHandlerExtensions
-
Gets the root from the given
SimpleTreeNodeobject - getRoot(Map<K, TreeIdNode<T, K>>) - Static method in class io.github.astrapi69.gen.tree.convert.BaseTreeNodeTransformer
-
Retrieves the root
BaseTreeNodeobject from the given @link Map} object that containsTreeIdNodeobjects as values and the id as key - getRoot(T) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
-
Gets the root from the given
ITreeNodeobject
H
- hasChildren() - Method in interface io.github.astrapi69.gen.tree.api.ITreeNode
- hasChildren() - Method in class io.github.astrapi69.gen.tree.TreeIdNode
-
Checks for children.
- hasChildren(SimpleTreeNode<T, K>) - Static method in class io.github.astrapi69.gen.tree.handler.SimpleTreeNodeHandlerExtensions
-
Checks if the given
SimpleTreeNodeobject has children - hasChildren(T) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
-
Checks if the given
ITreeNodeobject has children - hasLeftMostChild() - Method in class io.github.astrapi69.gen.tree.SimpleTreeNode
-
Checks if this node has a left most child
- hasNext() - Method in class io.github.astrapi69.gen.tree.binary.LinkedNode
-
Checks if this tree node has a next object
- hasNextSibling() - Method in interface io.github.astrapi69.gen.tree.api.ITreeNode
- hasNextSibling(T) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
- hasParent() - Method in interface io.github.astrapi69.gen.tree.api.ITreeNode
- hasParent() - Method in class io.github.astrapi69.gen.tree.SimpleTreeNode
-
Checks if this node has a parent
- hasParent() - Method in class io.github.astrapi69.gen.tree.TreeIdNode
-
Checks for parent
- hasParent(SimpleTreeNode<T, K>) - Static method in class io.github.astrapi69.gen.tree.handler.SimpleTreeNodeHandlerExtensions
-
Checks if the given
SimpleTreeNodeobject has a parentSimpleTreeNodeobject - hasParent(T) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
- hasPrevious() - Method in class io.github.astrapi69.gen.tree.binary.LinkedNode
-
Checks for previous object
- hasPreviousSibling() - Method in interface io.github.astrapi69.gen.tree.api.ITreeNode
- hasPreviousSibling(T) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
- hasRightSibling() - Method in class io.github.astrapi69.gen.tree.SimpleTreeNode
-
Checks if this node has a right sibling
I
- IBaseTreeNode<V,
K, T extends IBaseTreeNode<V, K, T>> - Interface in io.github.astrapi69.gen.tree.api -
The Interface
IBaseTreeNodeextendsITreeNodeand provides an additional id field that can be used as key - IBaseTreeNodeHandlerExtensions - Class in io.github.astrapi69.gen.tree.handler
-
The class
IBaseTreeNodeHandlerExtensionsprovides handler methods for the classIBaseTreeNode - IBaseTreeNodeHandlerExtensions() - Constructor for class io.github.astrapi69.gen.tree.handler.IBaseTreeNodeHandlerExtensions
- INORDER - Enum constant in enum class io.github.astrapi69.gen.tree.enumeration.traversal.TraversalType
-
This
INORDERtype is for the inorder traversal - io.github.astrapi69.gen.tree - package io.github.astrapi69.gen.tree
-
Provides classes for abstract trees and nodes
- io.github.astrapi69.gen.tree.api - package io.github.astrapi69.gen.tree.api
-
Provides interfaces for abstract trees and nodes
- io.github.astrapi69.gen.tree.binary - package io.github.astrapi69.gen.tree.binary
- io.github.astrapi69.gen.tree.convert - package io.github.astrapi69.gen.tree.convert
- io.github.astrapi69.gen.tree.enumeration.merge - package io.github.astrapi69.gen.tree.enumeration.merge
- io.github.astrapi69.gen.tree.enumeration.traversal - package io.github.astrapi69.gen.tree.enumeration.traversal
- io.github.astrapi69.gen.tree.handler - package io.github.astrapi69.gen.tree.handler
- io.github.astrapi69.gen.tree.visitor - package io.github.astrapi69.gen.tree.visitor
- io.github.astrapisixtynine.gen.tree - module io.github.astrapisixtynine.gen.tree
-
The MIT License Copyright (C) 2015 Asterios Raptis Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
- isAncestor(T) - Method in interface io.github.astrapi69.gen.tree.api.ITreeNode
- isAncestor(T, T) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
- isChild(T) - Method in interface io.github.astrapi69.gen.tree.api.ITreeNode
- isChild(T, T) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
- isChildOf(SimpleTreeNode<T, K>, SimpleTreeNode<T, K>) - Static method in class io.github.astrapi69.gen.tree.handler.SimpleTreeNodeHandlerExtensions
-
Checks if the second given
SimpleTreeNodeobject is a child of the firstSimpleTreeNodeobject - isChildOf(T, T) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
- isDescendant(T) - Method in interface io.github.astrapi69.gen.tree.api.ITreeNode
- isDescendant(T, T) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
- isFirst() - Method in class io.github.astrapi69.gen.tree.binary.LinkedNode
-
Checks if this is the first object
- isGreater(LinkedNode<T>, T) - Method in class io.github.astrapi69.gen.tree.binary.GenericBinaryTree
-
Checks if the given value is greater than the value of the given
LinkedNodeobject - isGreater(K) - Method in class io.github.astrapi69.gen.tree.visitor.MaxIndexFinderTreeNodeVisitor
-
Checks if the given id is greater than the current
maxIndex - isNode() - Method in interface io.github.astrapi69.gen.tree.api.ITreeNode
- isNode() - Method in class io.github.astrapi69.gen.tree.SimpleTreeNode
-
Checks if this
SimpleTreeNodeobject is a node - isNode() - Method in class io.github.astrapi69.gen.tree.TreeIdNode
-
Checks if this
TreeIdNodeobject is a node - isNode(SimpleTreeNode<T, K>) - Static method in class io.github.astrapi69.gen.tree.handler.SimpleTreeNodeHandlerExtensions
-
Checks if the given
SimpleTreeNodeobject is a node - isNode(T) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
-
Checks if the given
ITreeNodeobject is a node - isParentOf(SimpleTreeNode<T, K>, SimpleTreeNode<T, K>) - Static method in class io.github.astrapi69.gen.tree.handler.SimpleTreeNodeHandlerExtensions
-
Checks if the first given
SimpleTreeNodeobject is the parent of the secondSimpleTreeNodeobject - isParentOf(T, T) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
- isRoot() - Method in interface io.github.astrapi69.gen.tree.api.ITreeNode
- isRoot() - Method in class io.github.astrapi69.gen.tree.SimpleTreeNode
-
Checks if this
SimpleTreeNodeis the rootSimpleTreeNodeobject - isRoot() - Method in class io.github.astrapi69.gen.tree.TreeIdNode
-
Checks if this
TreeIdNodeis the rootTreeIdNodeobject - isRoot(SimpleTreeNode<T, K>) - Static method in class io.github.astrapi69.gen.tree.handler.SimpleTreeNodeHandlerExtensions
-
Checks if the given
SimpleTreeNodeis the rootSimpleTreeNodeobject - isRoot(T) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
- isSmaller(LinkedNode<T>, T) - Method in class io.github.astrapi69.gen.tree.binary.GenericBinaryTree
-
Checks if the given value is smaller than the value of the given
LinkedNodeobject - ITreeNode<V,
T extends ITreeNode<V, T>> - Interface in io.github.astrapi69.gen.tree.api -
The Interface
ITreeNodeholds the children in aCollectionobject - ITreeNodeHandlerExtensions - Class in io.github.astrapi69.gen.tree.handler
-
The class
ITreeNodeHandlerExtensionsprovides handler methods for the classITreeNode - ITreeNodeHandlerExtensions() - Constructor for class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
K
- KEEP - Enum constant in enum class io.github.astrapi69.gen.tree.enumeration.merge.MergeStrategy
-
This strategy will keep the existing node and ignore the new one
L
- LinkedNode<T> - Class in io.github.astrapi69.gen.tree.binary
-
The class
LinkedNodeis a representation of a binary tree node and can have only one next element and one previous element and a current value. - LinkedNode(T) - Constructor for class io.github.astrapi69.gen.tree.binary.LinkedNode
-
Instantiates a new
LinkedNode
M
- MaxIndexFinderTreeNodeVisitor<V,
K, T extends IBaseTreeNode<V, K, T>> - Class in io.github.astrapi69.gen.tree.visitor -
This visitor visits all
ITreeNodeobjects and adds them to aCollectionobject with all descendant - MaxIndexFinderTreeNodeVisitor() - Constructor for class io.github.astrapi69.gen.tree.visitor.MaxIndexFinderTreeNodeVisitor
-
Instantiates a new
MergeTreeNodesVisitorobject - MergeStrategy - Enum Class in io.github.astrapi69.gen.tree.enumeration.merge
-
The enum
MergeStrategywill be used for merge tree nodes - mergeTreeNodes(T, List<T>) - Static method in class io.github.astrapi69.gen.tree.handler.IBaseTreeNodeHandlerExtensions
-
Merge the given tree nodes with the given root tree node
- mergeTreeNodes(T, T...) - Static method in class io.github.astrapi69.gen.tree.handler.IBaseTreeNodeHandlerExtensions
-
Merge the given tree nodes with the given root tree node
- MergeTreeNodesVisitor<V,
K, T extends IBaseTreeNode<V, K, T>> - Class in io.github.astrapi69.gen.tree.visitor -
This visitor visits all
IBaseTreeNodeobjects and merges all nodes to the givenIBaseTreeNodeobject. - MergeTreeNodesVisitor(T) - Constructor for class io.github.astrapi69.gen.tree.visitor.MergeTreeNodesVisitor
-
Instantiates a new
MergeTreeNodesVisitorobject - move(T) - Method in interface io.github.astrapi69.gen.tree.api.ITreeNode
- move(T, T) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
O
- OVERWRITE - Enum constant in enum class io.github.astrapi69.gen.tree.enumeration.merge.MergeStrategy
-
This strategy will overwrite the existing node with the new one
P
- POSTORDER - Enum constant in enum class io.github.astrapi69.gen.tree.enumeration.traversal.TraversalType
-
This
POSTORDERtype is for the postorder traversal - PREORDER - Enum constant in enum class io.github.astrapi69.gen.tree.enumeration.traversal.TraversalType
-
This
PREORDERtype is for the preorder traversal
R
- ReindexTreeNodeVisitor<V,
K, T extends IBaseTreeNode<V, K, T>> - Class in io.github.astrapi69.gen.tree.visitor -
This visitor visits all
ITreeNodeobjects and adds them to aCollectionobject with all descendants - ReindexTreeNodeVisitor(IdGenerator<K>) - Constructor for class io.github.astrapi69.gen.tree.visitor.ReindexTreeNodeVisitor
-
Instantiates a new
ReindexTreeNodeVisitorobject - removeChild(SimpleTreeNode<T, K>, SimpleTreeNode<T, K>) - Static method in class io.github.astrapi69.gen.tree.handler.SimpleTreeNodeHandlerExtensions
-
Removes the given child from the given first
SimpleTreeNode - removeChild(TreeIdNode<T, K>) - Method in class io.github.astrapi69.gen.tree.TreeIdNode
-
Removes the child.
- removeChild(T) - Method in interface io.github.astrapi69.gen.tree.api.ITreeNode
- removeChild(T, T) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
-
Removes the given child from the given first
ITreeNode - removeChild(T, T, boolean) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
-
Removes the given child from the given first
ITreeNode - removeChildren() - Method in interface io.github.astrapi69.gen.tree.api.ITreeNode
- removeChildren(SimpleTreeNode<T, K>) - Static method in class io.github.astrapi69.gen.tree.handler.SimpleTreeNodeHandlerExtensions
-
Removes all children from the given
SimpleTreeNodeobject - removeChildren(SimpleTreeNode<T, K>, Collection<SimpleTreeNode<T, K>>) - Static method in class io.github.astrapi69.gen.tree.handler.SimpleTreeNodeHandlerExtensions
-
Removes all the given children from the first given
SimpleTreeNodeobject - removeChildren(Collection<T>) - Method in interface io.github.astrapi69.gen.tree.api.ITreeNode
- removeChildren(T) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
-
Removes all children from the given
ITreeNodeobject - removeChildren(T, Collection<T>) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
-
Removes all the given children from the first given
ITreeNodeobject - removeFromParent(T) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
-
Removes the parent from the given
ITreeNodeobject - removeFromParent(T, T) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
-
Removes the parent from the given child
ITreeNodeobject - removeFromParent(T, T, boolean) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
-
Removes the parent from the given child
ITreeNodeobject
S
- SimpleTreeNode<V,
K> - Class in io.github.astrapi69.gen.tree -
The generic class
SimpleTreeNodeholds only the parent, the left most child and the right sibling - SimpleTreeNode(V) - Constructor for class io.github.astrapi69.gen.tree.SimpleTreeNode
-
Instantiates a new
SimpleTreeNodeobject - SimpleTreeNodeHandlerExtensions - Class in io.github.astrapi69.gen.tree.handler
-
The class
SimpleTreeNodeHandlerExtensionsprovides handler methods for the classSimpleTreeNode - SimpleTreeNodeHandlerExtensions() - Constructor for class io.github.astrapi69.gen.tree.handler.SimpleTreeNodeHandlerExtensions
- sortChildren() - Method in interface io.github.astrapi69.gen.tree.api.IBaseTreeNode
-
Sorts the children collection if the comparator is not null
- sortChildren() - Method in class io.github.astrapi69.gen.tree.BaseTreeNode
-
Sorts the children collection if the comparator is not null
T
- toKeyBaseTreeNodeMap(BaseTreeNode<T, K>) - Static method in class io.github.astrapi69.gen.tree.convert.BaseTreeNodeTransformer
-
Transforms the given
BaseTreeNodeobject to aMapobject with the key and the correspondingBaseTreeNodeobjects - toKeyMap(BaseTreeNode<T, K>) - Static method in class io.github.astrapi69.gen.tree.convert.BaseTreeNodeTransformer
-
Transforms the given
BaseTreeNodeobject to aMapobject with the key and the correspondingTreeIdNodeobjects - toList() - Method in interface io.github.astrapi69.gen.tree.api.ITreeNode
- toList() - Method in class io.github.astrapi69.gen.tree.binary.LinkedNode
-
Transforms this linked node object to an ordered
LinkedListwith all nodes - toList(SimpleTreeNode<T, K>) - Static method in class io.github.astrapi69.gen.tree.handler.SimpleTreeNodeHandlerExtensions
-
Traverse the given
SimpleTreeNodeobject and adds all descendant with it self-included in to aListobject - toList(T) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
- toTreeIdNode(BaseTreeNode<T, K>) - Static method in class io.github.astrapi69.gen.tree.convert.BaseTreeNodeTransformer
-
Transforms the given
BaseTreeNodeobject to aTreeIdNodeobject - transform(Map<K, TreeIdNode<T, K>>) - Static method in class io.github.astrapi69.gen.tree.convert.BaseTreeNodeTransformer
-
Transforms the given
Mapobject that containsTreeIdNodeobjects as values and the id as key - TraversalType - Enum Class in io.github.astrapi69.gen.tree.enumeration.traversal
-
The enum
TraversalTypeprovides the different types of traversing a tree - traverse() - Method in interface io.github.astrapi69.gen.tree.api.ITreeNode
- traverse() - Method in class io.github.astrapi69.gen.tree.SimpleTreeNode
-
Traverse this node and add all descendants with this included in to a
Set - traverse(SimpleTreeNode<T, K>) - Static method in class io.github.astrapi69.gen.tree.handler.SimpleTreeNodeHandlerExtensions
-
Traverse the given
SimpleTreeNodeobject and add all descendants with the givenSimpleTreeNodeobject included in to the returnedCollectionobject - traverse(T) - Static method in class io.github.astrapi69.gen.tree.handler.BaseTreeNodeVisitorHandlerExtensions
-
Traverse the given
IBaseTreeNodeobject and add all descendants with the givenIBaseTreeNodeobject included in to the returnedCollectionobject - traverse(T) - Static method in class io.github.astrapi69.gen.tree.handler.ITreeNodeHandlerExtensions
-
Traverse the given
ITreeNodeobject and add all descendants with the givenITreeNodeobject included in to the returnedCollectionobject - traverse(T) - Static method in class io.github.astrapi69.gen.tree.handler.TreeNodeVisitorHandlerExtensions
-
Traverse the given
ITreeNodeobject and add all descendants with the givenITreeNodeobject included in to the returnedCollectionobject - TreeIdNode<T,
K> - Class in io.github.astrapi69.gen.tree -
The generic class
TreeIdNodekeeps no references to the parent or the children, only the id's are kept. - TreeIdNode(T) - Constructor for class io.github.astrapi69.gen.tree.TreeIdNode
-
Instantiates a new
TreeIdNodeobject - TreeNode<T> - Class in io.github.astrapi69.gen.tree
-
The generic class TreeNode.
- TreeNode(T) - Constructor for class io.github.astrapi69.gen.tree.TreeNode
-
Instantiates a new tree node.
- TreeNodeVisitorHandlerExtensions - Class in io.github.astrapi69.gen.tree.handler
-
The class
TreeNodeVisitorHandlerExtensionsprovides handler methods for the visit all field in the classITreeNode - TreeNodeVisitorHandlerExtensions() - Constructor for class io.github.astrapi69.gen.tree.handler.TreeNodeVisitorHandlerExtensions
V
- valueOf(String) - Static method in enum class io.github.astrapi69.gen.tree.enumeration.merge.MergeStrategy
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.astrapi69.gen.tree.enumeration.traversal.TraversalType
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class io.github.astrapi69.gen.tree.enumeration.merge.MergeStrategy
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.astrapi69.gen.tree.enumeration.traversal.TraversalType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- visit(T) - Method in class io.github.astrapi69.gen.tree.visitor.BaseMergeTreeNodesVisitor
- visit(T) - Method in class io.github.astrapi69.gen.tree.visitor.FindValuesIBaseTreeNodeVisitor
- visit(T) - Method in class io.github.astrapi69.gen.tree.visitor.MaxIndexFinderTreeNodeVisitor
- visit(T) - Method in class io.github.astrapi69.gen.tree.visitor.ReindexTreeNodeVisitor
All Classes and Interfaces|All Packages|Serialized Form