Class Anything<T>

java.lang.Object
org.dmfs.jems2.predicate.Anything<T>
All Implemented Interfaces:
Predicate<T>

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

    • Anything

      public Anything()
  • Method Details

    • 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>