|
Scala
1.4.0.3 |
|||
History[A, B]
objects may subscribe to events of
type A
published by an object of type B
.
The history subscriber object records all published events
up to maximum number of maxHistory
events.
Field Summary | |
protected
|
val log: Queue[Tuple2[B,A]]
|
val maxHistory: Int
|
Method Summary | |
def clear: Unit
|
|
def elements: Iterator[Tuple2[B,A]]
Creates a new iterator over all elements contained in this object. |
|
def events: Iterator[A]
|
|
def notify(pub: B, event: A): Unit
|
|
final
|
def notify(): Unit
|
def size: Int
|
Methods inherited from java/lang/Object-class |
clone, eq, equals, finalize, getClass, hashCode, ne, notify, notifyAll, synchronized, toString, wait, wait, wait |
Methods inherited from scala/Any-class |
!=, ==, asInstanceOf, isInstanceOf, match |
Methods inherited from scala/Iterable-class |
/:, :\, concat, exists, find, foldLeft, foldRight, forall, foreach, sameElements |
Methods inherited from scala/ScalaObject-class |
getScalaType |
Field Detail |
protected val log: Queue[Tuple2[B,A]]
val maxHistory: Int
Method Detail |
def notify(pub: B, event: A): Unit
final def notify(): Unit
def elements: Iterator[Tuple2[B,A]]
def events: Iterator[A]
def size: Int
def clear: Unit
|
Scala
1.4.0.3 |
|||