Class OperatorTakeWhile<T>

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

    public final class OperatorTakeWhile<T>
    extends java.lang.Object
    implements Observable.Operator<T,​T>
    O Returns an Observable that emits items emitted by the source Observable as long as a specified condition is true.

    • Field Summary

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

      Constructors 
      Constructor Description
      OperatorTakeWhile​(Func1<? super T,​java.lang.Boolean> underlying)  
      OperatorTakeWhile​(Func2<? super T,​? super java.lang.Integer,​java.lang.Boolean> predicate)  
    • Method Summary

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

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

      • predicate

        final Func2<? super T,​? super java.lang.Integer,​java.lang.Boolean> predicate
    • Constructor Detail

      • OperatorTakeWhile

        public OperatorTakeWhile​(Func1<? super T,​java.lang.Boolean> underlying)
      • OperatorTakeWhile

        public OperatorTakeWhile​(Func2<? super T,​? super java.lang.Integer,​java.lang.Boolean> predicate)