Package de.xima.fc.common.tree
Class TreeIterationFlag
- java.lang.Object
-
- de.xima.fc.common.tree.TreeIterationFlag
-
public final class TreeIterationFlag extends Object
Flags for iterating over trees, seeTreeIteration.- Since:
- 8.4.0
-
-
Field Summary
Fields Modifier and Type Field Description static longEXCLUDE_START_NODESIf set, the start nodes are excluded from the iteration.static longUNLIMITED_RECURSIONBy default, stops iterating when an item is encountered for the second time (as determined byObject.hashCode(),Object.equals(Object)) and throws anIllegalStateException.
-
-
-
Field Detail
-
EXCLUDE_START_NODES
public static final long EXCLUDE_START_NODES
If set, the start nodes are excluded from the iteration. Start nodes are included by default.- See Also:
- Constant Field Values
-
UNLIMITED_RECURSION
public static final long UNLIMITED_RECURSION
By default, stops iterating when an item is encountered for the second time (as determined byObject.hashCode(),Object.equals(Object)) and throws anIllegalStateException. This incurs some extra overhead, if you are certain that the tree is acyclic, you can set this flag to skip the check.- See Also:
- Constant Field Values
-
-