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.
public final class TreeInternalNode<T> extends AbstractTreeNode<T>
This class represents an internal node in a tree data structure, which haveAbstractTreeNode
children
(at least 1), linked by alogical operator
.
-
-
Field Summary
Fields Modifier and Type Field Description private List<AbstractTreeNode<T>>
_children
private Query.LogicalOperator
_operator
-
Constructor Summary
Constructors Constructor Description TreeInternalNode(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AbstractTreeNode<T>>
getChildren()
Gets the childrenQuery.LogicalOperator
getLogicalOperator()
Gets the logical operator-
Methods inherited from class org.ametys.cms.search.advanced.AbstractTreeNode
getFlatLeaves, walk
-
-
-
-
Field Detail
-
_children
private List<AbstractTreeNode<T>> _children
-
_operator
private Query.LogicalOperator _operator
-
-
Constructor Detail
-
TreeInternalNode
public TreeInternalNode(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.- Parameters:
children
- the children of the internal nodeoperator
- the logical operator to link the children
-
-
Method Detail
-
getChildren
public List<AbstractTreeNode<T>> getChildren()
Gets the children- Returns:
- the children
-
getLogicalOperator
public Query.LogicalOperator getLogicalOperator()
Gets the logical operator- Returns:
- the logical operator
-
-