Addition

rescala.extra.incremental.Addition
case class Addition[T](v: T) extends Delta[T]

Type parameters

T

type of the value the Delta holds

Value parameters

v

the value that is added

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Delta[T]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited 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

Inherited from:
Delta
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

Inherited from:
Delta

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
def value: T

Attributes

Returns

the value the Delta is holding

Inherited from:
Delta