Package io.pebbletemplates.pebble.utils
Enum OperatorUtils.Comparison
- java.lang.Object
-
- java.lang.Enum<OperatorUtils.Comparison>
-
- io.pebbletemplates.pebble.utils.OperatorUtils.Comparison
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<OperatorUtils.Comparison>
- Enclosing class:
- OperatorUtils
private static enum OperatorUtils.Comparison extends java.lang.Enum<OperatorUtils.Comparison>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EQUALS
GREATER_THAN
GREATER_THAN_EQUALS
LESS_THAN
LESS_THAN_EQUALS
-
Constructor Summary
Constructors Modifier Constructor Description private
Comparison()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OperatorUtils.Comparison
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static OperatorUtils.Comparison[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GREATER_THAN
public static final OperatorUtils.Comparison GREATER_THAN
-
GREATER_THAN_EQUALS
public static final OperatorUtils.Comparison GREATER_THAN_EQUALS
-
LESS_THAN
public static final OperatorUtils.Comparison LESS_THAN
-
LESS_THAN_EQUALS
public static final OperatorUtils.Comparison LESS_THAN_EQUALS
-
EQUALS
public static final OperatorUtils.Comparison EQUALS
-
-
Method Detail
-
values
public static OperatorUtils.Comparison[] 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 (OperatorUtils.Comparison c : OperatorUtils.Comparison.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OperatorUtils.Comparison 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
-
-