Package org.openl.rules.range
Enum Range.Type
- java.lang.Object
-
- java.lang.Enum<Range.Type>
-
- org.openl.rules.range.Range.Type
-
- All Implemented Interfaces:
Serializable,Comparable<Range.Type>
public static enum Range.Type extends Enum<Range.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLOSEDCLOSED_OPENDEGENERATELEFT_CLOSEDLEFT_OPENOPENOPEN_CLOSEDRIGHT_CLOSEDRIGHT_OPEN
-
Field Summary
Fields Modifier and Type Field Description Range.BoundleftRange.Boundright
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Range.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static Range.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OPEN
public static final Range.Type OPEN
-
CLOSED
public static final Range.Type CLOSED
-
OPEN_CLOSED
public static final Range.Type OPEN_CLOSED
-
CLOSED_OPEN
public static final Range.Type CLOSED_OPEN
-
LEFT_OPEN
public static final Range.Type LEFT_OPEN
-
LEFT_CLOSED
public static final Range.Type LEFT_CLOSED
-
RIGHT_OPEN
public static final Range.Type RIGHT_OPEN
-
RIGHT_CLOSED
public static final Range.Type RIGHT_CLOSED
-
DEGENERATE
public static final Range.Type DEGENERATE
-
-
Field Detail
-
left
public final Range.Bound left
-
right
public final Range.Bound right
-
-
Method Detail
-
values
public static Range.Type[] 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 (Range.Type c : Range.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Range.Type 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
-
-