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

Type parameters

T

type of the value the Delta holds

Attributes

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

Members list

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

Value parameters

accept

is the function used to filter.

Attributes

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

Type parameters

A

the type of the mapped value

Value parameters

mapOperation

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

Attributes

def value: T

Attributes

Returns

the value the Delta is holding