Package sfs2x.client.entities.match
Enum LogicOperator
- java.lang.Object
-
- java.lang.Enum<LogicOperator>
-
- sfs2x.client.entities.match.LogicOperator
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<LogicOperator>
public enum LogicOperator extends java.lang.Enum<LogicOperator>
The LogicOperator class is used to concatenate two matching expressions using the AND or OR logical operator.- See Also:
MatchExpression
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getId()
Returns the id of the current LogicOperator instance.static LogicOperator
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static LogicOperator[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AND
public static final LogicOperator AND
An instance of LogicOperator representing the AND logical operator.
-
OR
public static final LogicOperator OR
An instance of LogicOperator representing the OR logical operator.
-
-
Method Detail
-
values
public static LogicOperator[] 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 (LogicOperator c : LogicOperator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LogicOperator 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
-
getId
public java.lang.String getId()
Returns the id of the current LogicOperator instance. It can be the string "AND" or "OR".
-
-