Package org.ametys.cms.search.advanced
Class TreeInternalNode<T>
java.lang.Object
org.ametys.cms.search.advanced.AbstractTreeNode<T>
org.ametys.cms.search.advanced.TreeInternalNode<T>
- Type Parameters:
T
- the type of the values of the leaves of the tree.
This class represents an internal node in a tree data structure, which have
AbstractTreeNode
children
(at least 1),
linked by a logical operator
.-
Constructor Summary
ConstructorDescriptionTreeInternalNode
(List<AbstractTreeNode<T>> children, Query.LogicalOperator operator) Constructs a new internal node in a tree data structure with the given children and the given logical operator to link these children. -
Method Summary
Modifier and TypeMethodDescriptionGets the childrenGets the logical operatorMethods inherited from class org.ametys.cms.search.advanced.AbstractTreeNode
getFlatLeaves, walk
-
Constructor Details
-
TreeInternalNode
Constructs a new internal node in a tree data structure with the given children and the given logical operator to link these children.- Parameters:
children
- the children of the internal nodeoperator
- the logical operator to link the children
-
-
Method Details
-
getChildren
Gets the children- Returns:
- the children
-
getLogicalOperator
Gets the logical operator- Returns:
- the logical operator
-