diff options
Diffstat (limited to 'src/dotnet-library/scala/collection/mutable/Subscriber.scala')
-rw-r--r-- | src/dotnet-library/scala/collection/mutable/Subscriber.scala | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/dotnet-library/scala/collection/mutable/Subscriber.scala b/src/dotnet-library/scala/collection/mutable/Subscriber.scala new file mode 100644 index 0000000000..b6c33a8b1b --- /dev/null +++ b/src/dotnet-library/scala/collection/mutable/Subscriber.scala @@ -0,0 +1,25 @@ +/* __ *\ +** ________ ___ / / ___ Scala API ** +** / __/ __// _ | / / / _ | (c) 2003-2006, LAMP/EPFL ** +** __\ \/ /__/ __ |/ /__/ __ | ** +** /____/\___/_/ |_/____/_/ | | ** +** |/ ** +\* */ + +// $Id$ + + +package scala.collection.mutable + + +/** <code>Subscriber[A, B]</code> objects may subscribe to events of + * type <code>A</code> published by an object of type <code>B</code>. + * <code>B</code> is typically a subtype of <a href="Publisher.html" + * target="contentFrame"><code>Publisher</code></a>. + * + * @author Matthias Zenger + * @version 1.0, 08/07/2003 + */ +trait Subscriber[-A, -B] { + def notify(pub: B, event: A): Unit +} |