Enum BSPTree.FindNodeCutRule
- java.lang.Object
-
- java.lang.Enum<BSPTree.FindNodeCutRule>
-
- org.apache.commons.geometry.core.partitioning.bsp.BSPTree.FindNodeCutRule
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BSPTree.FindNodeCutRule>
public static enum BSPTree.FindNodeCutRule extends java.lang.Enum<BSPTree.FindNodeCutRule>
Enum specifying possible behaviors when a point used to locate a node falls directly on the cut of an internal node.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
FindNodeCutRule()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BSPTree.FindNodeCutRule
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BSPTree.FindNodeCutRule[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MINUS
public static final BSPTree.FindNodeCutRule MINUS
Choose the minus child of the internal node and continue searching. This behavior will result in a leaf node always being returned by the node search.
-
PLUS
public static final BSPTree.FindNodeCutRule PLUS
Choose the plus child of the internal node and continue searching. This behavior will result in a leaf node always being returned by the node search.
-
NODE
public static final BSPTree.FindNodeCutRule NODE
Choose the internal node and stop searching. This behavior may result in non-leaf nodes being returned by the node search.
-
-
Method Detail
-
values
public static BSPTree.FindNodeCutRule[] 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 (BSPTree.FindNodeCutRule c : BSPTree.FindNodeCutRule.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BSPTree.FindNodeCutRule valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-