Class Condition


  • public final class Condition
    extends Object
    • Field Detail

      • NESTED_ATTR_DELIMITER

        public static String NESTED_ATTR_DELIMITER
    • Method Detail

      • matches

        public boolean matches​(Object o)
        Check if the object matches current condition.
        Parameters:
        o - object to be checked.
        Returns:
        true if the object matches current condition, false otherwise.
      • asPredicate

        public Predicate asPredicate()
      • valueAsObject

        public Comparable valueAsObject​(Class type)
        Retrieve the object representing the value of the current condition, considering provided class type.
        Parameters:
        type - class to be considered for the object .
        Returns:
        the value represented as an instance of the given type with the value of the condition.
        Throws:
        DataClayException - if the type is not supported.