Class Anything<T>

  • All Implemented Interfaces:
    Predicate<T>

    public final class Anything<T>
    extends java.lang.Object
    implements Predicate<T>
    A trivial Predicate which matches anything.
    • Constructor Summary

      Constructors 
      Constructor Description
      Anything()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean satisfiedBy​(T testedInstance)
      Returns whether the given instance satisfies this predicate.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Anything

        public Anything()
    • Method Detail

      • satisfiedBy

        public boolean satisfiedBy​(T testedInstance)
        Description copied from interface: Predicate
        Returns whether the given instance satisfies this predicate.
        Specified by:
        satisfiedBy in interface Predicate<T>