Class FalseSpecification<T>

  • Type Parameters:
    T - the type of the candidate object the specification applies to.
    All Implemented Interfaces:
    Specification<T>

    public class FalseSpecification<T>
    extends Object
    implements Specification<T>
    An always false specification, NOT satisfied by any candidate object.
    • Constructor Detail

      • FalseSpecification

        public FalseSpecification()
    • Method Detail

      • isSatisfiedBy

        public boolean isSatisfiedBy​(T candidate)
        Description copied from interface: Specification
        Evaluates if the candidate object passed as argument satisfies the specification.
        Specified by:
        isSatisfiedBy in interface Specification<T>
        Parameters:
        candidate - the candidate object to check.
        Returns:
        true if the candidate object satisfies the specification, false otherwise.