Class OperatorSkipWhile<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 OperatorSkipWhile<T>
    extends java.lang.Object
    implements Observable.Operator<T,​T>
    Skips any emitted source items as long as the specified condition holds true. Emits all further source items as soon as the condition becomes false.
    • Field Summary

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

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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Subscriber<? super T> call​(Subscriber<? super T> child)  
      static <T> Func2<T,​java.lang.Integer,​java.lang.Boolean> toPredicate2​(Func1<? super T,​java.lang.Boolean> predicate)
      Convert to Func2 type predicate.
      • 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,​java.lang.Integer,​java.lang.Boolean> predicate
    • Constructor Detail

      • OperatorSkipWhile

        public OperatorSkipWhile​(Func2<? super T,​java.lang.Integer,​java.lang.Boolean> predicate)
    • Method Detail

      • toPredicate2

        public static <T> Func2<T,​java.lang.Integer,​java.lang.Boolean> toPredicate2​(Func1<? super T,​java.lang.Boolean> predicate)
        Convert to Func2 type predicate.
        Type Parameters:
        T - the input value type
        Parameters:
        predicate - the single argument predicate function
        Returns:
        The two argument function which ignores its second parameter