Class/Object

pl.metastack.metarx

Var

Related Docs: object Var | package metarx

Permalink

sealed class Var[T] extends StateChannel[T] with ChannelDefaultSize[T]

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Var
  2. ChannelDefaultSize
  3. StateChannel
  4. ReadStateChannel
  5. Channel
  6. WriteChannel
  7. Produce
  8. ReadChannel
  9. Disposable
  10. Flush
  11. Size
  12. Cache
  13. MapExtended
  14. Map
  15. Filter
  16. Aggregate
  17. Is
  18. Fold
  19. Take
  20. Tail
  21. Head
  22. AnyRef
  23. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Var(v: T)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def :=(value: T): Unit

    Permalink
    Definition Classes
    Produce
  4. def <<[U](ch: ReadChannel[T], ignore: ReadChannel[U]): ReadChannel[Unit]

    Permalink
    Definition Classes
    WriteChannel
  5. def <<(ch: ReadChannel[T]): ReadChannel[Unit]

    Permalink
    Definition Classes
    WriteChannel
  6. def <<>>(other: Channel[T], ignoreOther: ReadChannel[Unit]): Unit

    Permalink
    Definition Classes
    Channel
  7. def <<>>(other: Channel[T]): Unit

    Permalink
    Definition Classes
    Channel
  8. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def >>(ch: WriteChannel[T]): ReadChannel[Unit]

    Permalink
    Definition Classes
    ReadChannel
  10. def all(value: T): ReadChannel[Boolean]

    Permalink

    All elements are equal to value

    All elements are equal to value

    Definition Classes
    Filter
    See also

    any

  11. def any(value: T): ReadChannel[Boolean]

    Permalink

    At least one element is equal to value

    At least one element is equal to value

    Definition Classes
    Filter
    See also

    all

  12. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  13. def attach(f: (T) ⇒ Unit): ReadChannel[Unit]

    Permalink
    Definition Classes
    ReadChannel
  14. def biMap[U](f: (T) ⇒ U, g: (U) ⇒ T): Channel[U]

    Permalink
    Definition Classes
    Channel
  15. def bind(other: Channel[T], ignoreOther: ReadChannel[Unit]): Unit

    Permalink
    Definition Classes
    Channel
  16. def bind(other: Channel[T]): Unit

    Permalink

    Two-way binding; synchronises this and other.

    Two-way binding; synchronises this and other.

    Definition Classes
    Channel
  17. def buffer: Buffer[T]

    Permalink

    Buffers all produced elements

    Buffers all produced elements

    Definition Classes
    ReadChannel
  18. def cache(default: T): ReadStateChannel[T]

    Permalink
    Definition Classes
    ReadChannelCache
  19. def cache: ReadPartialChannel[T]

    Permalink
    Definition Classes
    ReadChannelCache
  20. def child(): ReadChannel[T]

    Permalink
    Definition Classes
    ReadChannel
  21. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. def collect[U](f: PartialFunction[T, U]): ReadChannel[U]

    Permalink

    Applies partial function f on each element; if the function is not defined for the current input, it is filtered out

    Applies partial function f on each element; if the function is not defined for the current input, it is filtered out

    Definition Classes
    ReadChannelMapExtended
  23. def combine[U](other: StateChannel[U]): ReadChannel[(T, U)]

    Permalink

    In contrast to zip() this produces a new value for each change of this or other.

    In contrast to zip() this produces a new value for each change of this or other. Therefore, other must be a StateChannel.

    Definition Classes
    StateChannelReadStateChannel
  24. def contains(value: T): ReadChannel[Boolean]

    Permalink

    Stream contains at least one occurrence of value.

    Stream contains at least one occurrence of value.

    Definition Classes
    Filter
    Note

    Channels: Once true, will never produce any other value.

    ,

    Buffers: When the item is removed, it will produce false.

  25. def count(value: T): ReadChannel[Int]

    Permalink

    Count number of occurrence of value.

    Count number of occurrence of value.

    Definition Classes
    Filter
    Note

    Channels: With every matching element, the counter is increased.

    ,

    Buffers: When the element is removed, the counter is decreased.

  26. def detach(ch: ChildChannel[T, _]): Unit

    Permalink
    Definition Classes
    ReadChannel
  27. def dispose(): Unit

    Permalink
    Definition Classes
    StateChannelChannelDisposable
  28. def distinct: ReadChannel[T]

    Permalink

    Filters out (merges) duplicates

    Filters out (merges) duplicates

    Definition Classes
    ReadChannelAggregate
  29. def drop(count: Int): ReadChannel[T]

    Permalink

    Definition Classes
    ReadChannelTake
    Note

    Channels: Skips first count elements, then stop listening. Subscribing to it will always yield the last result as initial value.

    ,

    Buffers: Creates a sub-buffer without the first count elements.

  30. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  31. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  32. def exists(f: (T) ⇒ Boolean): ReadChannel[Boolean]

    Permalink

    Checks for existence of a value for which f is true

    Checks for existence of a value for which f is true

    Definition Classes
    Filter
    Note

    Channels: false as long as f returns false, then true

    ,

    Buffers: false as long as no row exists where f is true, then true

    See also

    forall

  33. def filter(f: (T) ⇒ Boolean): ReadChannel[T]

    Permalink

    Only include elements for which f is true

    Only include elements for which f is true

    Definition Classes
    ReadChannelFilter
  34. def filterCycles: ReadChannel[T]

    Permalink
    Definition Classes
    ReadChannel
  35. def filterNot(f: (T) ⇒ Boolean): ReadChannel[T]

    Permalink
    Definition Classes
    Filter
  36. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  37. def flatMap[U](f: (T) ⇒ ReadChannel[U]): ReadChannel[U]

    Permalink

    Applies f on each element and flatten its result into the stream

    Applies f on each element and flatten its result into the stream

    Definition Classes
    ReadChannelMapExtended
  38. def flatMapBuf[U](f: (T) ⇒ ReadBuffer[U]): ReadBuffer[U]

    Permalink
    Definition Classes
    ReadChannel
  39. def flatMapCh[U](f: (T) ⇒ Channel[U]): Channel[U]

    Permalink

    flatMap with back-propagation.

    flatMap with back-propagation.

    Definition Classes
    ReadChannel
  40. def flatMapSeq[U](f: (T) ⇒ Seq[U]): ReadChannel[U]

    Permalink

    Definition Classes
    ReadChannelMapExtended
    See also

    flatMap

  41. def flatProduce[U](value: Option[T], ignore: ReadChannel[U]*): Unit

    Permalink
    Definition Classes
    WriteChannel
  42. def flatProduce(value: Option[T]): Unit

    Permalink
    Definition Classes
    WriteChannel
  43. def flush(f: (T) ⇒ Unit): Unit

    Permalink

    Call f for each element

    Call f for each element

    Definition Classes
    VarWriteChannelReadChannelFlush
  44. def foldLeft[U](acc: U)(f: (U, T) ⇒ U): ReadChannel[U]

    Permalink

    Definition Classes
    ReadChannelFold
    Note

    Caches the accumulator value.

  45. def forall(f: (T) ⇒ Boolean): ReadChannel[Boolean]

    Permalink

    Checks whether f is true for all elements

    Checks whether f is true for all elements

    Definition Classes
    Filter
    See also

    exists

  46. def forkBi[U](fwd: Observer[T, U], bwd: Observer[U, T], silent: Boolean = false): Channel[U]

    Permalink

    Bi-directional fork for values

    Bi-directional fork for values

    Definition Classes
    WriteChannel
  47. def forkBiFlat[U](obs: Observer[T, Channel[U]]): Channel[U]

    Permalink

    Bi-directional fork for channels

    Bi-directional fork for channels

    Definition Classes
    ReadChannel
  48. def forkUni[U](observer: Observer[T, U], filterCycles: Boolean = false): ReadChannel[U]

    Permalink

    Uni-directional fork for values

    Uni-directional fork for values

    Definition Classes
    ReadChannel
  49. def forkUniFlat[U](observer: Observer[T, ReadChannel[U]]): ReadChannel[U]

    Permalink

    Uni-directional fork for channels

    Uni-directional fork for channels

    Definition Classes
    ReadChannel
  50. def forkUniState[U](observer: Observer[T, U], onFlush: ⇒ Option[U]): ReadChannel[U]

    Permalink
    Definition Classes
    ReadChannel
  51. def get: T

    Permalink
    Definition Classes
    VarReadStateChannel
  52. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  53. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  54. def head: ReadChannel[T]

    Permalink

    Wraps first element as a channel

    Wraps first element as a channel

    Denotes first produced element after the head call; whether head has observers at this point is irrelevant as the value is cached (i.e. attaching repeatedly will always lead the same value)

    Definition Classes
    ReadChannelHead
  55. def is(value: T): ReadChannel[Boolean]

    Permalink

    Current value is equal to value

    Current value is equal to value

    Definition Classes
    ReadChannelIs
  56. def isEmpty: ReadChannel[Boolean]

    Permalink

    Definition Classes
    Size
    Note

    Partial channels: Produce true if the current value is cleared.

    ,

    Channels: Produce false with the first received value.

    ,

    Buffers: Produce a new value once a row is added or removed.

  57. def isHead(value: T): ReadChannel[Boolean]

    Permalink

    Checks whether the given element is the first produced value

    Checks whether the given element is the first produced value

    Definition Classes
    ReadChannelHead
  58. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  59. def isNot(value: T): ReadChannel[Boolean]

    Permalink

    Current value is not equal to value

    Current value is not equal to value

    Definition Classes
    ReadChannelIs
  60. def map[U](f: (T) ⇒ U): ReadChannel[U]

    Permalink

    Applies f on each element

    Applies f on each element

    Definition Classes
    ReadChannelMap
  61. def mapTo[U](f: (T) ⇒ U): DeltaDict[T, U]

    Permalink

    Map f on each element and turn stream into a dictionary

    Map f on each element and turn stream into a dictionary

    Definition Classes
    ReadChannelMapExtended
  62. def max[U >: T](init: U)(implicit num: Numeric[U]): ReadChannel[U]

    Permalink

    Calculates maximum value

    Calculates maximum value

    Definition Classes
    Fold
    See also

    foldLeft

  63. def merge(ch: ReadChannel[T]): ReadChannel[T]

    Permalink
    Definition Classes
    ReadChannel
  64. def min[U >: T](init: U)(implicit num: Numeric[U]): ReadChannel[U]

    Permalink

    Calculates minimum value

    Calculates minimum value

    Definition Classes
    Fold
    See also

    foldLeft

  65. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  66. def nonEmpty: ReadChannel[Boolean]

    Permalink

    Negation of isEmpty

    Negation of isEmpty

    Definition Classes
    Size
  67. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  68. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  69. def or(ch: ReadChannel[_]): ReadChannel[Unit]

    Permalink
    Definition Classes
    ReadChannel
  70. def partialBiMap[U](f: (T) ⇒ Option[U], g: (U) ⇒ Option[T]): Channel[U]

    Permalink
    Definition Classes
    Channel
  71. def partition(f: (T) ⇒ Boolean): (ReadChannel[T], ReadChannel[T])

    Permalink

    Partitions stream into two sub-stream

    Partitions stream into two sub-stream

    The left stream contains all elements for which f is true, all other elements go to the right stream.

    Definition Classes
    Filter
  72. def produce[U](value: T, ignore: ReadChannel[U]*): Unit

    Permalink
    Definition Classes
    WriteChannel
  73. def produce(value: T): Unit

    Permalink
    Definition Classes
    WriteChannelProduce
  74. def product[U >: T](implicit num: Numeric[U]): ReadChannel[U]

    Permalink

    Calculates product

    Calculates product

    Definition Classes
    Fold
    See also

    foldLeft

  75. def publish[U](ch: WriteChannel[T], ignore: ReadChannel[U]): ReadChannel[Unit]

    Permalink
    Definition Classes
    ReadChannel
  76. def publish(ch: WriteChannel[T]): ReadChannel[Unit]

    Permalink
    Definition Classes
    ReadChannel
  77. def silentAttach(f: (T) ⇒ Unit): ReadChannel[Unit]

    Permalink
    Definition Classes
    ReadChannel
  78. def size: ReadChannel[Int]

    Permalink
    Definition Classes
    ChannelDefaultSize
  79. def subscribe[U](ch: ReadChannel[T], ignore: ReadChannel[U]): ReadChannel[Unit]

    Permalink
    Definition Classes
    WriteChannel
  80. def subscribe(ch: ReadChannel[T]): ReadChannel[Unit]

    Permalink

    Redirect stream from other to this.

    Redirect stream from other to this.

    Definition Classes
    WriteChannel
  81. def sum[U >: T](implicit num: Numeric[U]): ReadChannel[U]

    Permalink

    Sums over all elements

    Sums over all elements

    Definition Classes
    Fold
    See also

    foldLeft

  82. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  83. def tail: ReadChannel[T]

    Permalink

    Skips first element

    Skips first element

    Definition Classes
    ReadChannelTail
  84. def take(count: Int): ReadChannel[T]

    Permalink

    Definition Classes
    ReadChannelTake
    Note

    Channels: Takes first count elements, then stop listening. Subscribing to it will always yield the last result as initial value.

    ,

    Buffers: Will always contain the first count (or less) elements of the parent buffer.

  85. def takeUntil(ch: ReadChannel[_]): ReadChannel[T]

    Permalink

    Take all elements until ch produces any value

    Take all elements until ch produces any value

    Definition Classes
    ReadChannelTake
  86. def toBuffer: Buffer[T]

    Permalink

    Buffers only current element

    Buffers only current element

    Definition Classes
    ReadChannel
  87. def toOpt: Opt[T]

    Permalink
    Definition Classes
    Channel
  88. def toString(): String

    Permalink
    Definition Classes
    VarChannel → AnyRef → Any
  89. def update(f: (T) ⇒ T): Unit

    Permalink
    Definition Classes
    StateChannel
  90. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  91. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  92. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  93. def writeTo(write: WriteChannel[T]): Channel[T]

    Permalink
    Definition Classes
    ReadChannel
  94. def zip[U](other: ReadChannel[U]): ReadChannel[(T, U)]

    Permalink

    Maps each value change of other to a change of this.

    Maps each value change of other to a change of this.

    Definition Classes
    StateChannelReadStateChannel
  95. def |(ch: ReadChannel[_]): ReadChannel[Unit]

    Permalink
    Definition Classes
    ReadChannel

Inherited from ChannelDefaultSize[T]

Inherited from StateChannel[T]

Inherited from ReadStateChannel[T]

Inherited from Channel[T]

Inherited from WriteChannel[T]

Inherited from Produce[T]

Inherited from ReadChannel[T]

Inherited from Disposable

Inherited from Flush[T]

Inherited from Size

Inherited from Cache[T]

Inherited from MapExtended[ReadChannel, T]

Inherited from Map[ReadChannel, T]

Inherited from Filter[ReadChannel, T, T]

Inherited from Aggregate[ReadChannel, T]

Inherited from Is[T]

Inherited from Fold[T]

Inherited from Take[ReadChannel, T]

Inherited from Tail[ReadChannel, T]

Inherited from Head[T]

Inherited from AnyRef

Inherited from Any

Ungrouped