Scala 2.5.1-final

API Specification

This document is the API specification for Scala Library Documentation

Class Summary
abstract class BitSet extends Set[Int]

The class BitSet provides the interface for a space-efficient implementation of dense integer sets represented as bits in array of integers. Bit indices are between 0..(capacity-1) inclusive.

trait Map [A, +B] extends PartialFunction[A, B] with Collection[(A, B)]

A map is a collection that maps each key to one or zero values.

This trait provides a limited interface, only allowing reading of elements. There are two extensions of this trait, in packages scala.collection.mutable and scala.collection.immutable, which provide functionality for adding new key/value mappings to a map. The trait in the first package is for maps that are modified destructively, whereas the trait in the second package is for immutable maps which create a new map when something is added or removed from them.

trait MapProxy [A, +B] extends Map[A, B] with IterableProxy[(A, B)]
This is a simple wrapper class for scala.collection.Map. It is most useful for assembling customized map abstractions dynamically using object composition and forwarding.
trait Ranged [K, +A] extends Iterable[A]
Any collection (including maps) whose keys (or elements) are ordered.
class RollbackIterator [+A](underlying : Iterator[A]) extends DefaultBufferedIterator[A]
Rollback iterators are buffered iterators which allow for unbounded rollbacks
trait Set [A] extends (A) => Boolean with Collection[A]

A set is a collection that includes at most one of any object.

This trait provides a limited interface, only allowing reading of elements. There are two extensions of this trait, in packages scala.collection.mutable and scala.collection.immutable, which provide functionality for adding and removing objects from the set. The trait in the first package is for sets that are modified destructively, whereas the trait in the second package is for immutable sets which create a new set when something is added or removed to them.

trait SetProxy [A] extends Set[A] with IterableProxy[A]
This is a simple wrapper class for scala.collection.Set. It is most useful for assembling customized set abstractions dynamically using object composition and forwarding.
trait Sorted [K, +A] extends Ranged[K, A]
Any collection (including maps) whose keys (or elements) are ordered.
trait SortedMap [K, +E] extends Map[K, E] with Sorted[K, (K, E)]
A map whose keys are sorted.
trait SortedSet [A] extends Set[A] with Sorted[A, A]
Analogous to a Java sorted set.
Object Summary
object Map extends AnyRef