Package de.gematik.combine.util
Enum CompareOperator
- java.lang.Object
-
- java.lang.Enum<CompareOperator>
-
- de.gematik.combine.util.CompareOperator
-
- All Implemented Interfaces:
Serializable,Comparable<CompareOperator>
public enum CompareOperator extends Enum<CompareOperator>
-
-
Field Summary
Fields Modifier and Type Field Description static StringOPERATOR_FORMAT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLiteral()static StringgetUsableOperators()booleanincludesResultOf(Integer comparedToResult)static CompareOperatorvalueOf(String name)Returns the enum constant of this type with the specified name.static CompareOperator[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EQ
public static final CompareOperator EQ
-
NE
public static final CompareOperator NE
-
LE
public static final CompareOperator LE
-
LT
public static final CompareOperator LT
-
GE
public static final CompareOperator GE
-
GT
public static final CompareOperator GT
-
-
Field Detail
-
OPERATOR_FORMAT
public static final String OPERATOR_FORMAT
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static CompareOperator[] 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 (CompareOperator c : CompareOperator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CompareOperator 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
-
getUsableOperators
public static String getUsableOperators()
-
includesResultOf
public boolean includesResultOf(Integer comparedToResult)
-
getLiteral
public String getLiteral()
-
-