Class Summary | |
final class
|
AtomicCell
[A](init : A) extends AnyRef
|
class
|
ConcurrentHashMap
[K, V](val jmap : java.util.concurrent.ConcurrentHashMap[K, V]) extends scala.collection.jcl.MapWrapper[K, V]
|
class
|
ConcurrentHashSet
[A](val jmap : java.util.concurrent.ConcurrentHashMap[A, scala.List[Any]]) extends scala.collection.mutable.Set[A]
|
class
|
ConcurrentLinkedList
[A] extends scala.Seq[A]
A thread-safe linked list implementation in which all operations except
'-=' are unsynchronized.
|
class
|
ConcurrentQueue
[A](val jq : java.util.concurrent.LinkedBlockingQueue[A]) extends AnyRef
|
trait
|
Injection
[A, B] extends (A) => B
Represents functions which have (potentially partial) inverses, and that
can therefore be used both in expressions and pattern matches.
|
abstract class
|
ManagedResource
[+A] extends AnyRef
Provides automatic resource management, equivalent to C#'s using, or C++
RAII. Idiomatic usage would be as follows (in fact FileExtras provides a
method equivalent to fileReader below):
def fileReader(f : String) = ManagedResource(new FileReader(f)) // Print the first character of a file for(in <- fileReader("/etc/passwd")) println(in.read().toChar) |
abstract class
|
ManagedSequence
[+A] extends scala.PartialFunction[Int, A]
A class which is approximately isomorphic to Seq, but which manages the
lifecycle of the underlying data source, and is generally non-strict.
|
abstract class
|
UntranslatedManagedResource
[A] extends ManagedResource[A]
The typical case of a ManagedResource, where the handle and resource are
the same object.
|
Object Summary | |
object
|
ManagedResource
extends AnyRef
|
object
|
ensuring
extends AnyRef
|