Enum BinaryInteraction
- java.lang.Object
-
- java.lang.Enum<BinaryInteraction>
-
- oracle.spatial.network.nfe.model.spatial.interaction.BinaryInteraction
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BinaryInteraction>
public enum BinaryInteraction extends java.lang.Enum<BinaryInteraction>
Defines different types of interactions between two elements
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANYAny interactionCROSSTwo elements crossingTOUCHOne element touching any point of another elementTOUCH_END_POINTOne element touching one end point of a lineTOUCH_MID_POINTOne element touching some mid point of a line
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetOrdinal()static BinaryInteractionvalueOf(int value)Returns the enum constant of this type with the specified name.static BinaryInteractionvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static BinaryInteraction[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CROSS
public static final BinaryInteraction CROSS
Two elements crossing
-
TOUCH_END_POINT
public static final BinaryInteraction TOUCH_END_POINT
One element touching one end point of a line
-
TOUCH_MID_POINT
public static final BinaryInteraction TOUCH_MID_POINT
One element touching some mid point of a line
-
TOUCH
public static final BinaryInteraction TOUCH
One element touching any point of another element
-
ANY
public static final BinaryInteraction ANY
Any interaction
-
-
Method Detail
-
values
public static BinaryInteraction[] 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 (BinaryInteraction c : BinaryInteraction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BinaryInteraction 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
-
getOrdinal
public int getOrdinal()
-
valueOf
public static BinaryInteraction valueOf(int value)
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:
value- 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
-
-