Enum DepthFirstNodeOrder
- java.lang.Object
-
- java.lang.Enum<DepthFirstNodeOrder>
-
- org.arakhne.afc.math.tree.iterator.DepthFirstNodeOrder
-
- All Implemented Interfaces:
Serializable
,Comparable<DepthFirstNodeOrder>
public enum DepthFirstNodeOrder extends Enum<DepthFirstNodeOrder>
Indicates when a node will be treated in comparison to its child nodes.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:41
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- mathtree
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DepthFirstNodeOrder
valueOf(String name)
Returns the enum constant of this type with the specified name.static DepthFirstNodeOrder[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PREFIX
public static final DepthFirstNodeOrder PREFIX
The parent node will be treated before all its children.
-
POSTFIX
public static final DepthFirstNodeOrder POSTFIX
The parent node will be treated after all its children.
-
INFIX
public static final DepthFirstNodeOrder INFIX
The parent node will be treated at the same time of its children. The "at the same time" notion is ambigous. The default behavior of the iterator assumes that the parent node will be treated in the middle of its child set.
-
-
Method Detail
-
values
public static DepthFirstNodeOrder[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DepthFirstNodeOrder c : DepthFirstNodeOrder.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DepthFirstNodeOrder valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-