Enum ComparatorType
- java.lang.Object
-
- java.lang.Enum<ComparatorType>
-
- software.amazon.smithy.jmespath.ast.ComparatorType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ComparatorType>
public enum ComparatorType extends java.lang.Enum<ComparatorType>
A comparator in a comparison expression.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EQUAL
GREATER_THAN
GREATER_THAN_EQUAL
LESS_THAN
LESS_THAN_EQUAL
NOT_EQUAL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
static ComparatorType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ComparatorType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EQUAL
public static final ComparatorType EQUAL
-
NOT_EQUAL
public static final ComparatorType NOT_EQUAL
-
LESS_THAN
public static final ComparatorType LESS_THAN
-
LESS_THAN_EQUAL
public static final ComparatorType LESS_THAN_EQUAL
-
GREATER_THAN
public static final ComparatorType GREATER_THAN
-
GREATER_THAN_EQUAL
public static final ComparatorType GREATER_THAN_EQUAL
-
-
Method Detail
-
values
public static ComparatorType[] 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 (ComparatorType c : ComparatorType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ComparatorType 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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<ComparatorType>
-
-