Class OperatorAny<T>

  • Type Parameters:
    T - the input value type
    All Implemented Interfaces:
    Func1<Subscriber<? super java.lang.Boolean>,​Subscriber<? super T>>, Function, Observable.Operator<java.lang.Boolean,​T>

    public final class OperatorAny<T>
    extends java.lang.Object
    implements Observable.Operator<java.lang.Boolean,​T>
    Returns an Observable that emits true if any element of an observable sequence satisfies a condition, otherwise false.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) Func1<? super T,​java.lang.Boolean> predicate  
      (package private) boolean returnOnEmpty  
    • Constructor Summary

      Constructors 
      Constructor Description
      OperatorAny​(Func1<? super T,​java.lang.Boolean> predicate, boolean returnOnEmpty)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Subscriber<? super T> call​(Subscriber<? super java.lang.Boolean> child)  
      • Methods inherited from class java.lang.Object

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

      • predicate

        final Func1<? super T,​java.lang.Boolean> predicate
      • returnOnEmpty

        final boolean returnOnEmpty
    • Constructor Detail

      • OperatorAny

        public OperatorAny​(Func1<? super T,​java.lang.Boolean> predicate,
                           boolean returnOnEmpty)