Class SingleWith<V>

java.lang.Object
org.dmfs.jems2.predicate.SingleWith<V>
All Implemented Interfaces:
Predicate<Single<? extends V>>

public final class SingleWith<V> extends Object implements Predicate<Single<? extends V>>
A Predicate to match the value of a Single.
  • Constructor Details

    • SingleWith

      public SingleWith(V delegate)
    • SingleWith

      public SingleWith(Predicate<? super V> delegate)
  • Method Details

    • satisfiedBy

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