Delta

rescala.extra.incremental.Delta
See theDelta companion object
sealed trait Delta[+T]

Deltas represent a change that will happen on reactive sequences. This could be adding, removing or no change at all

Attributes

T

type of the value the Delta holds

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Addition[T]
class NoChange[T]
class Removal[T]

Members list

Concise view

Value members

Concrete methods

def filter(accept: T => Boolean): Delta[T]

Filters the value of the Delta. If accepted by the filter function the Delta is returned, otherwise NoChange is returned

Filters the value of the Delta. If accepted by the filter function the Delta is returned, otherwise NoChange is returned

Attributes

accept

is the function used to filter.

Returns:

the Delta or NoChange if not accepted

def map[A](mapOperation: T => A): Delta[A]

Maps the value of the Delta. This will happen for an Addition or Removal only

Maps the value of the Delta. This will happen for an Addition or Removal only

Attributes

A

the type of the mapped value

mapOperation

maps the value of Delta by returning a new one with type A

def value: T

Attributes

Returns:

the value the Delta is holding