Package eu.simuline.relana.expressions
Enum Operation.BaseOps
- java.lang.Object
-
- java.lang.Enum<Operation.BaseOps>
-
- eu.simuline.relana.expressions.Operation.BaseOps
-
- All Implemented Interfaces:
Serializable
,Comparable<Operation.BaseOps>
- Enclosing class:
- Operation
public static enum Operation.BaseOps extends Enum<Operation.BaseOps>
Comprises the basic set theoretic operations union, intersection and complement.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Complement
Intersection
Union
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) Operation
getOperation()
static Operation
getOperation(String str)
static Operation.BaseOps
valueOf(String name)
Returns the enum constant of this type with the specified name.static Operation.BaseOps[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Intersection
public static final Operation.BaseOps Intersection
-
Union
public static final Operation.BaseOps Union
-
Complement
public static final Operation.BaseOps Complement
-
-
Field Detail
-
KEY2OP
private static final Map<String,Operation.BaseOps> KEY2OP
-
oper
private Operation oper
-
-
Constructor Detail
-
BaseOps
private BaseOps(Operation oper)
-
-
Method Detail
-
values
public static Operation.BaseOps[] 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 (Operation.BaseOps c : Operation.BaseOps.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Operation.BaseOps 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
-
getOperation
Operation getOperation()
-
-