Package org.arakhne.afc.math.tree.node
Enum BinaryTreeNode.BinaryTreeZone
- java.lang.Object
-
- java.lang.Enum<BinaryTreeNode.BinaryTreeZone>
-
- org.arakhne.afc.math.tree.node.BinaryTreeNode.BinaryTreeZone
-
- All Implemented Interfaces:
Serializable
,Comparable<BinaryTreeNode.BinaryTreeZone>
- Enclosing class:
- BinaryTreeNode<D,N extends BinaryTreeNode<D,N>>
public static enum BinaryTreeNode.BinaryTreeZone extends Enum<BinaryTreeNode.BinaryTreeZone>
This is the generic implementation of a tree for which each node has two children.- 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 BinaryTreeNode.BinaryTreeZone
fromInteger(int index)
Replies the zone corresponding to the given index.static BinaryTreeNode.BinaryTreeZone
valueOf(String name)
Returns the enum constant of this type with the specified name.static BinaryTreeNode.BinaryTreeZone[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LEFT
public static final BinaryTreeNode.BinaryTreeZone LEFT
This is the index of the child that correspond to the voxel at front/left/up position.
-
RIGHT
public static final BinaryTreeNode.BinaryTreeZone RIGHT
This is the index of the child that correspond to the voxel at back/right/down position.
-
-
Method Detail
-
values
public static BinaryTreeNode.BinaryTreeZone[] 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 (BinaryTreeNode.BinaryTreeZone c : BinaryTreeNode.BinaryTreeZone.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BinaryTreeNode.BinaryTreeZone 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
-
fromInteger
@Pure public static BinaryTreeNode.BinaryTreeZone fromInteger(int index)
Replies the zone corresponding to the given index. The index is the same as the ordinal value of the enumeration. If the given index does not correspond to an ordinal value,null
is replied.- Parameters:
index
- the index.- Returns:
- the zone or
null
-
-