Enum DynamoDbComparisonType
java.lang.Object
java.lang.Enum<DynamoDbComparisonType>
org.evomaster.client.java.controller.dynamodb.DynamoDbComparisonType
- All Implemented Interfaces:
Serializable,Comparable<DynamoDbComparisonType>,java.lang.constant.Constable
Shared normalized comparison type used by DynamoDB parsers and heuristics.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic DynamoDbComparisonTypefromOperation(ComparisonOperation<?> operation) Maps a comparison operation back to its normalized comparison type.static DynamoDbComparisonTypeMaps a DynamoDB comparator token to a normalized comparison type.abstract DynamoDbComparisonTypeinvert()Returns the inverse of the current comparator.protected abstract booleanmatchesOperation(ComparisonOperation<?> operation) Checks whether the given operation corresponds to this normalized comparison type.abstract ComparisonOperation<?>toOperation(String fieldName, Object value) Creates a comparison operation instance for this comparison type.static DynamoDbComparisonTypeReturns the enum constant of this type with the specified name.static DynamoDbComparisonType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
EQUALS
-
NOT_EQUALS
-
GREATER_THAN
-
GREATER_THAN_EQUALS
-
LESS_THAN
-
LESS_THAN_EQUALS
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
fromToken
Maps a DynamoDB comparator token to a normalized comparison type.- Parameters:
token- comparator token from parsed expression- Returns:
- normalized comparison type
-
toOperation
Creates a comparison operation instance for this comparison type.- Parameters:
fieldName- field name coming from DynamoDB expression/conditionvalue- comparison value- Returns:
- concrete comparison operation
-
fromOperation
Maps a comparison operation back to its normalized comparison type.- Parameters:
operation- comparison operation instance- Returns:
- associated comparison type
-
invert
Returns the inverse of the current comparator.- Returns:
- inverse comparison type
-
matchesOperation
Checks whether the given operation corresponds to this normalized comparison type.- Parameters:
operation- comparison operation instance- Returns:
- whether the operation belongs to this comparison type
-