Class OnSubscribeFromIterable<T>

  • Type Parameters:
    T - the value type of the items
    All Implemented Interfaces:
    Action, Action1<Subscriber<? super T>>, Function, Observable.OnSubscribe<T>

    public final class OnSubscribeFromIterable<T>
    extends java.lang.Object
    implements Observable.OnSubscribe<T>
    Converts an Iterable sequence into an Observable.

    You can convert any object that supports the Iterable interface into an Observable that emits each item in the object, with the toObservable operation.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.Iterable<? extends T> is  
    • Constructor Summary

      Constructors 
      Constructor Description
      OnSubscribeFromIterable​(java.lang.Iterable<? extends T> iterable)  
    • Method Summary

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

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

      • is

        final java.lang.Iterable<? extends T> is
    • Constructor Detail

      • OnSubscribeFromIterable

        public OnSubscribeFromIterable​(java.lang.Iterable<? extends T> iterable)