in scala.collection.mutable
class History

[scala.serializable]
`class` History [A, B]
  `extends` java.lang.Object
  `with` scala.collection.mutable.Subscriber[A, B]
  `with` scala.Iterable[scala.Tuple2[B, A]]
  `with` scala.ScalaObject

  `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.

Author:
  Matthias Zenger
Version:
  1.0, 08/07/2003

Direct Known Subclasses:
  RevertableHistory

Constructor Summary
| `def` this

Val Summary
`protected` | `val` log : scala.collection.mutable.Queue[scala.Tuple2[B, A]]
| `val` maxHistory : scala.Int

Def Summary
| `def` clear : scala.Unit
| `def` elements : scala.Iterator[scala.Tuple2[B, A]]
| `def` events : scala.Iterator[A]
| `def` notify (pub: B, event: A) : scala.Unit
| `def` size : scala.Int

Def inherited from scala.collection.mutable.Subscriber[A, B]
notify

Def inherited from scala.Iterable[scala.Tuple2[B, A]]
++ , /:, :\, addString, concat, copyToBuffer, drop, dropWhile, elements, exists, filter, find, findIndexOf, flatMap, foldLeft, foldRight, forall, foreach, indexOf, map, mkString, mkString, reduceLeft, reduceRight, sameElements, take, takeWhile, toList

Constructor Detail

`def` this

Val Detail

`protected val` log : scala.collection.mutable.Queue[scala.Tuple2[B, A]]

`val` maxHistory : scala.Int

Def Detail

`def` clear : scala.Unit

`def` elements : scala.Iterator[scala.Tuple2[B, A]]

`def` events : scala.Iterator[A]

`def` notify (pub: B, event: A): scala.Unit

Parameters:
  `pub -` ...
Parameters:
  `event -` ...

`def` size : scala.Int