Class AnyOf<T>

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

public final class AnyOf<T> extends Object implements Predicate<T>
A Predicate which is satisfied if any of a given number of predicates are satisfied. This is equivalent to the boolean "OR" operation.
  • Constructor Details

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