Class OperatorSingle<T>

  • All Implemented Interfaces:
    Func1<Subscriber<? super T>,Subscriber<? super T>>, Function, Observable.Operator<T,T>


    public final class OperatorSingle<T>
    extends Object
    implements Observable.Operator<T,T>
    If the Observable completes after emitting a single item that matches a predicate, return an Observable containing that item. If it emits more than one such item or no item, throw an IllegalArgumentException.
    • Constructor Detail

      • OperatorSingle

        public OperatorSingle()
      • OperatorSingle

        public OperatorSingle(T defaultValue)