FilterDeltaSeq

rescala.extra.incremental.IncrementalBundle.FilterDeltaSeq
class FilterDeltaSeq[T](in: ReactiveDeltaSeq[T], expression: T => Boolean)(initialState: SeqState[T], name: ReInfo) extends Base[BundleState, Delta[T]], Derived, ReactiveDeltaSeq[T]

Class used for filtering ReactiveDeltaSeq

Type parameters

S

Structure of Delta

T

Value inside Delta

Value parameters

expression

filterExpression with return type boolean used for filtering elements inside the sequence

in

the ReactiveDeltaSeq to filter

initialState

...

name

Name of the new filtered sequence

Attributes

Graph
Supertypes
trait ReactiveDeltaSeq[T]
trait Derived
class Base[BundleState, Delta[T]]
trait ReSource
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited types

final type ReIn = ReevTicket[State, Value]

Attributes

Inherited from:
Derived
final type Rout = of[State, Value]

Attributes

Inherited from:
Derived
override type State[V] = BundleState[V]

Attributes

Inherited from:
ReactiveDeltaSeq
override type Value = Delta[T]

the value of deltas send through the set

the value of deltas send through the set

Attributes

Inherited from:
ReactiveDeltaSeq

Value members

Inherited methods

def ++(that: ReactiveDeltaSeq[T])(implicit ticket: CreationTicket[State]): ReactiveDeltaSeq[T]

Concatenates the ReactiveDeltaSeq with another (that) ReactiveDeltaSeq by returning a new ReactiveDeltaSeq (ConcatenateDeltaSeq)

Concatenates the ReactiveDeltaSeq with another (that) ReactiveDeltaSeq by returning a new ReactiveDeltaSeq (ConcatenateDeltaSeq)

Value parameters

that

the ReactiveDeltaSeq which will be concatenated with this

ticket

used for the creation of the concatenated ReactiveDeltaSeq

Attributes

Returns

ConcatenateDeltaSeq

Inherited from:
ReactiveDeltaSeq
def asEvent(implicit ticket: CreationTicket[State]): Event[Delta[T]]

Returns current ReactiveDeltaSeq as an Event

Returns current ReactiveDeltaSeq as an Event

Value parameters

ticket

a creation ticket as a new event will be created which has the ReactiveDeltaSeq as dependency

Attributes

Inherited from:
ReactiveDeltaSeq
def contains(element: T)(implicit ticket: CreationTicket[State], ord: Ordering[T]): Signal[Boolean]

To check if an element is in the sequence

To check if an element is in the sequence

Value parameters

element

element to search for

resInt

needed by REScala API for Signal/Event holding Ints

ticket

for creating the Signal holding the boolean value

Attributes

Inherited from:
ReactiveDeltaSeq
def count(fulfillsCondition: T => Boolean)(implicit ticket: CreationTicket[State]): Signal[Int]

Counts number of elements fulfilling the condition provided

Counts number of elements fulfilling the condition provided

Value parameters

fulfillsCondition

the condition values of deltas have to fulfill to be taken in consideration

resInt

needed by REScala API for Signal/Event holding Ints

ticket

for creating the Signal holding the value of counted elements

Attributes

Inherited from:
ReactiveDeltaSeq
final def disconnect(): Unit

Attributes

Inherited from:
DisconnectableImpl
def exists(fulfillsCondition: T => Boolean)(implicit ticket: CreationTicket[State]): Signal[Boolean]

To check if elements fulfilling the condition exists

To check if elements fulfilling the condition exists

Value parameters

fulfillsCondition

the condition values of deltas have to fulfill to be taken in consideration

resInt

needed by REScala API for Signal/Event holding Ints

ticket

for creating the Signal holding the boolean value

Attributes

Inherited from:
ReactiveDeltaSeq
def filter(filterOperation: T => Boolean)(implicit ticket: CreationTicket[State]): ReactiveDeltaSeq[T]

Filters the sequence , basing on filterExpression and returns the new filtered sequence

Filters the sequence , basing on filterExpression and returns the new filtered sequence

Value parameters

filterOperation

the operation used for filtering

ticket

for creating the new source

Attributes

Returns

the filtered ReactiveDeltaSeq

Inherited from:
ReactiveDeltaSeq
def foldUndo[A](initial: A)(fold: (A, Delta[T]) => A)(unfold: (A, Delta[T]) => A)(implicit ticket: CreationTicket[State]): Signal[A]

Based on the concept of reversible Folds Used to fold the deltas basing on fold for Addition-Delta and unfold for Removal-Delta

Based on the concept of reversible Folds Used to fold the deltas basing on fold for Addition-Delta and unfold for Removal-Delta

Type parameters

A

the value returned by applying fold or unfold on the value T of Deltas

Value parameters

fold

the function used when an Addition occurs

initial

is the initial value the foldUndo folds to

ticket

as we will create

unfold

the function used when a Removal occurs

Attributes

Inherited from:
ReactiveDeltaSeq
def map[A](mapOperation: T => A)(implicit ticket: CreationTicket[State]): ReactiveDeltaSeq[A]

Maps the elements of ReactiveDeltaSeq and returns a new ReactiveDeltaSeq with the mapped deltas with the old ReactiveDeltaSeq as dependency

Maps the elements of ReactiveDeltaSeq and returns a new ReactiveDeltaSeq with the mapped deltas with the old ReactiveDeltaSeq as dependency

Type parameters

A

new Value type for deltas in the mapped ReactiveDeltaSeq

Value parameters

mapOperation

the operation used for mapping the values of ReactiveDeltaSeq to MapDeltaSeq

ticket

Ticket for creating the new ReactiveDeltaSeq

Attributes

Returns

the mapped ReactiveDeltaSeq

Inherited from:
ReactiveDeltaSeq
def max(implicit ticket: CreationTicket[State], ord: Ordering[T]): Signal[Option[T]]

Value parameters

ord

the ordering needed to compare values of deltas for finding the minimum

res

...

ticket

used for creation of new sources

Attributes

Returns

Signal holding the optional minimum (as it could be None if the seqeunce is empty)

Inherited from:
ReactiveDeltaSeq
def min(implicit ticket: CreationTicket[State], ord: Ordering[T]): Signal[Option[T]]

Value parameters

ord

the ordering needed to compare values of deltas for finding the minimum

res

...

ticket

used for creation of new sources

Attributes

Returns

Signal holding the optional minimum (as it could be None if the seqeunce is empty)

Inherited from:
ReactiveDeltaSeq
def size(implicit ticket: CreationTicket[State]): Signal[Int]

Returns the sizeOfSeq of the ReactiveDeltaSeq

Returns the sizeOfSeq of the ReactiveDeltaSeq

Value parameters

resInt

needed by REScala API for Signal/Event holding Ints //TODO check

ticket

for creating the Signal holding the value of sizeOfSeq

Attributes

Inherited from:
ReactiveDeltaSeq
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Base -> Any
Inherited from:
Base

Inherited fields

override val info: ReInfo

Attributes

Inherited from:
Base