Package com.aerospike.dsl.util
Class ValidationUtils
java.lang.Object
com.aerospike.dsl.util.ValidationUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidvalidateComparableTypes(com.aerospike.client.exp.Exp.Type leftType, com.aerospike.client.exp.Exp.Type rightType) Validates if twoExp.Typeinstances are comparable.
-
Constructor Details
-
ValidationUtils
public ValidationUtils()
-
-
Method Details
-
validateComparableTypes
public static void validateComparableTypes(com.aerospike.client.exp.Exp.Type leftType, com.aerospike.client.exp.Exp.Type rightType) Validates if twoExp.Typeinstances are comparable. Comparison is allowed if both types are the same, or if one isINTand the other isFLOAT. If the types are not comparable, aDslParseExceptionis thrown.- Parameters:
leftType- TheExp.Typeof the left operand. Can benullrightType- TheExp.Typeof the right operand. Can benull- Throws:
DslParseException- If both types are notnulland are not comparable
-