Class OperatorElementAt<T>

java.lang.Object
rx.internal.operators.OperatorElementAt<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 OperatorElementAt<T> extends Object implements Observable.Operator<T,T>
Returns the element at a specified index in a sequence.
  • Field Details

    • index

      final int index
    • hasDefault

      final boolean hasDefault
    • defaultValue

      final T defaultValue
  • Constructor Details

    • OperatorElementAt

      public OperatorElementAt(int index)
    • OperatorElementAt

      public OperatorElementAt(int index, T defaultValue)
    • OperatorElementAt

      private OperatorElementAt(int index, T defaultValue, boolean hasDefault)
  • Method Details