Class ValidationUtils

java.lang.Object
com.aerospike.dsl.util.ValidationUtils

public class ValidationUtils extends Object
  • 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 two Exp.Type instances are comparable. Comparison is allowed if both types are the same, or if one is INT and the other is FLOAT. If the types are not comparable, a DslParseException is thrown.
      Parameters:
      leftType - The Exp.Type of the left operand. Can be null
      rightType - The Exp.Type of the right operand. Can be null
      Throws:
      DslParseException - If both types are not null and are not comparable