Transformer

kreuzberg.EventSource.Transformer
case class Transformer[E, F](from: EventSource[E], f: E => Seq[F]) extends EventSource[F]

Transforms event sources

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait EventSource[F]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def collect[F](f: PartialFunction[F, F]): EventSource[F]

Collect values.

Collect values.

Attributes

Inherited from:
EventSource
def filter(f: F => Boolean): EventSource[F]

Filters the value

Filters the value

Attributes

Inherited from:
EventSource
def handle[T >: F](f: T => Unit): EventBinding[T]

Attach a handler

Attach a handler

Attributes

Inherited from:
EventSource
def handleAny(f: => Unit): EventBinding[Any]

Attach a handler, discarding the value.

Attach a handler, discarding the value.

Attributes

Inherited from:
EventSource
def hook(f: F => Unit): EventSource[F]

Just hook in some code.

Just hook in some code.

Attributes

Inherited from:
EventSource
def map[F](f: F => F): EventSource[F]

Map the value

Map the value

Attributes

Inherited from:
EventSource
def or[T >: F](source: EventSource[T]): EventSource[T]

Combine with some other event source.

Combine with some other event source.

Attributes

Inherited from:
EventSource
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product