ContraMap

kreuzberg.EventSink$.ContraMap
case class ContraMap[E, F](sink: EventSink[E], f: F => E) extends EventSink[F]

Applies a map function before calling a sink.

Attributes

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

Members list

Value members

Inherited methods

def and[T <: F](sink: EventSink[T]): EventSink[T]

Add another sink

Add another sink

Attributes

Inherited from:
EventSink
def contraCollect[F](pf: PartialFunction[F, F]): EventSink[F]

Applies a partial function before calling the sink.

Applies a partial function before calling the sink.

Attributes

Inherited from:
EventSink
def contraMap[F](f: F => F): EventSink[F]

Applies a map function before calling a sink.

Applies a map function before calling a sink.

Attributes

Inherited from:
EventSink
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product