Class AbstractObjectConditions<T>

    • Field Detail

      • object

        protected final T object
      • negation

        protected boolean negation
    • Constructor Detail

      • AbstractObjectConditions

        public AbstractObjectConditions​(T object)
        Initialize the conditions with given object.
        Parameters:
        object - underlying object
      • AbstractObjectConditions

        public AbstractObjectConditions​(T object,
                                        boolean negation)
        Initialize the conditions with given object
        Parameters:
        object - underlying object
        negation - negation value
    • Method Detail

      • verify

        public boolean verify​(java.util.function.Predicate<T> predicate)
        Description copied from interface: Conditions
        Check that the given predicate is verified against this condition object.
        Specified by:
        verify in interface Conditions<T>
        Parameters:
        predicate - predicate to check
        Returns:
        true if the predicated is checked, false otherwise
      • getActualObject

        public T getActualObject()
        Description copied from interface: ConditionsObject
        Get the actual object.
        Specified by:
        getActualObject in interface ConditionsObject<T>
        Returns:
        actual object on which conditions are performed.
      • newInstance

        protected abstract AbstractObjectConditions<T> newInstance​(boolean negationValue)
        Creates a new instance of this condition.
        Parameters:
        negationValue - negation value
        Returns:
        new instance of this condition