Packages

object Sink

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Sink
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def create[T](onNext: (T) ⇒ Unit): Sink[T]

    Creates a new Sink from Scratch.

    Creates a new Sink from Scratch. This function takes another function as its parameter that will be executed every time the Sink receives an emitted value.

    T

    the type parameter of the consumed elements.

    onNext

    the function to be executed on every emission

    returns

    a Sink that consumes elements of type T.

  7. def createHandler[T](seeds: T*): Observable[T] with Sink[T]

    Creates a Handler that is both Observable and Sink.

    Creates a Handler that is both Observable and Sink. An Observable with Sink is an Observable that can also receive Events, i.e. it’s both a Source and a Sink of events. If you’re familiar with Rx, they’re very similar to Subjects. This function also allows you to create initial values for your newly created Handler. This is equivalent to calling startWithMany with the given values.

    T

    the type parameter of the elements

    seeds

    a sequence of initial values that the Handler will emit.

    returns

    the newly created Handler.

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  17. def redirect[T, R](sink: Sink[T])(project: (Observable[R]) ⇒ Observable[T]): Sink[R]

    Creates a new sink.

    Creates a new sink. This sink will transform the values it receives and then forward them along to the passed sink. The transformation is described by a function from an Observable to another Observable, i.e. an operator on Observable. This function applies the operator to the newly created sink and forwards the value to the original sink.

    T

    the type of the original sink

    R

    the type of the resulting sink

    sink

    the Sink to forward values to

    project

    the operator to use

    returns

    the resulting sink, that will forward the values

  18. def redirect2[T, U, R](sink: Sink[T])(project: (Observable[R], Observable[U]) ⇒ Observable[T]): (Sink[R], Sink[U])

    Creates two new sinks.

    Creates two new sinks. These sinks will transform the values it receives and then forward them along to the passed sink. The transformation is described by a function from two Observables to another Observable, i.e. an operator on Observable. (e.g. merge) This function applies the operator to the newly created sinks and forwards the value to the original sink.

    T

    the type of the original sink

    U

    the type of the other of the resulting sinks

    R

    the type of one of the resulting sinks

    sink

    the Sink to forward values to

    project

    the operator to use

    returns

    the two resulting sinks, that will forward the values

  19. def redirect3[T, U, V, R](sink: Sink[T])(project: (Observable[R], Observable[U], Observable[V]) ⇒ Observable[T]): (Sink[R], Sink[U], Sink[V])

    Creates three new sinks.

    Creates three new sinks. These sinks will transform the values it receives and then forward them along to the passed sink. The transformation is described by a function from three Observables to another Observable, i.e. an operator on Observable. (e.g. combineLatest) This function applies the operator to the newly created sinks and forwards the value to the original sink.

    T

    the type of the original sink

    U

    the type of one of the other of the resulting sinks

    V

    the type of the other of the resulting sinks

    R

    the type of one of the resulting sinks

    sink

    the Sink to forward values to

    project

    the operator to use

    returns

    the two resulting sinks, that will forward the values

  20. def redirectMap[T, R](sink: Sink[T])(f: (R) ⇒ T): Sink[R]

    Creates a new sink.

    Creates a new sink. This sink will transform each value it receives and then forward it along to the passed sink. The transformation is a simple map from one type to another, i.e. a 'map'. This is equivalent to contramap on a Contravariant functor, since Sinks are contravariant in nature.

    T

    the type of the original sink

    R

    the type of the resulting sink

    sink

    the Sink to forward values to

    f

    the mapping to perform before forwarding

    returns

    the resulting sink, that will forward the values

  21. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped