Scala 2.8.0.Beta1-RC1 API

This document is the API specification for Scala Library

Class Summary
trait BitSet extends Set[Int] with BitSetLike[BitSet]
common base class for mutable and immutable bit sets
trait BitSetLike [+This <: BitSetLike[This] with Set[Int]] extends SetLike[Int, This]
common base class for mutable and immutable bit sets
trait BufferedIterator [+A] extends Iterator[A]
Buffered iterators are iterators which provide a method head that inspects the next element without discarding it.
trait DefaultMap [A, +B] extends Map[A, B]
trait IndexedSeq [+A] extends Seq[A] with GenericTraversableTemplate[A, IndexedSeq] with IndexedSeqLike[A, IndexedSeq[A]]
trait IndexedSeqLike [+A, +Repr] extends SeqLike[A, Repr]
Sequences that support O(1) element access and O(1) length computation. This class does not add any methods to Seq but overrides several methods with optimized implementations.
trait IndexedSeqView [+A, +Coll] extends IndexedSeqViewLike[A, Coll, IndexedSeqView[A, Coll]]
A non-strict projection of an iterable.
trait IndexedSeqViewLike [+A, +Coll, +This <: IndexedSeqView[A, Coll] with IndexedSeqViewLike[A, Coll, This]] extends IndexedSeq[A] with IndexedSeqLike[A, This] with SeqView[A, Coll] with SeqViewLike[A, Coll, This]
A template trait for a non-strict view of a IndexedSeq.
trait Iterable [+A] extends Traversable[A] with GenericTraversableTemplate[A, Iterable] with IterableLike[A, Iterable[A]]
trait IterableLike [+A, +Repr] extends Equals with TraversableLike[A, Repr]
trait IterableProxy [+A] extends Iterable[A] with IterableProxyLike[A, Iterable[A]]
trait IterableProxyLike [+A, +This <: IterableLike[A, This] with Iterable[A]] extends IterableLike[A, This] with TraversableProxyLike[A, This]
This trait implements a proxy for iterable objects. It forwards all calls to a different iterable object
trait IterableView [+A, +Coll] extends IterableViewLike[A, Coll, IterableView[A, Coll]]
A base class for views of Iterables.
trait IterableViewLike [+A, +Coll, +This <: IterableView[A, Coll] with IterableViewLike[A, Coll, This]] extends Iterable[A] with IterableLike[A, This] with TraversableView[A, Coll] with TraversableViewLike[A, Coll, This]
A template trait for a non-strict view of an iterable.
trait Iterator [+A] extends AnyRef
Iterators are data structures that allow to iterate over a sequence of elements. They have a hasNext method for checking if there is a next element available, and a next method which returns the next element and discards it from the iterator.
trait LinearSeq [+A] extends Seq[A] with GenericTraversableTemplate[A, LinearSeq] with LinearSeqLike[A, LinearSeq[A]]
trait LinearSeqLike [+A, +Repr <: LinearSeqLike[A, Repr]] extends SeqLike[A, Repr]
Class Linear[A] represents linear sequences of elements. For such sequences `isEmpty`, `head` and `tail` are guaranteed to be efficient constant time (or near so) operations. It does not add any methods to Seq but overrides several methods with optimized implementations.
trait Map [A, +B] extends Iterable[(A, B)] with MapLike[A, B, Map[A, B]]
trait MapLike [A, +B, +This <: MapLike[A, B, This] with Map[A, B]] extends PartialFunction[A, B] with IterableLike[(A, B), This] with Subtractable[A, This]
trait MapProxy [A, +B] extends Map[A, B] with MapProxyLike[A, B, Map[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 MapProxyLike [A, +B, +This <: MapLike[A, B, This] with Map[A, B]] extends MapLike[A, B, This] with IterableProxyLike[(A, B), This]
This trait implements a proxy for iterable objects. It forwards all calls to a different iterable object
trait Seq [+A] extends PartialFunction[Int, A] with Iterable[A] with GenericTraversableTemplate[A, Seq] with SeqLike[A, Seq[A]]
trait SeqLike [+A, +Repr] extends IterableLike[A, Repr]
Class Seq[A] represents sequences of elements of type A. It adds the following methods to class Iterable: `length`, `lengthCompare`, `apply`, `isDefinedAt`, `segmentLength`, `prefixLength`, `indexWhere`, `indexOf`, `lastIndexWhere`, `lastIndexOf`, `reverse`, `reverseIterator`, `startsWith`, `endsWith`, `indexOfSeq`, , `zip`, `zipAll`, `zipWithIndex`.
trait SeqProxy [+A] extends Seq[A] with SeqProxyLike[A, Seq[A]]
This trait implements a proxy for sequence objects. It forwards all calls to a different sequence object.
trait SeqProxyLike [+A, +This <: SeqLike[A, This] with Seq[A]] extends SeqLike[A, This] with IterableProxyLike[A, This]
This trait implements a proxy for sequences. It forwards all calls to a different sequence.
trait SeqView [+A, +Coll] extends SeqViewLike[A, Coll, SeqView[A, Coll]]
A non-strict projection of an iterable.
trait SeqViewLike [+A, +Coll, +This <: SeqView[A, Coll] with SeqViewLike[A, Coll, This]] extends Seq[A] with SeqLike[A, This] with IterableView[A, Coll] with IterableViewLike[A, Coll, This]
A template trait for a non-strict view of a sequence.
trait Set [A] extends (A) => Boolean with Iterable[A] with GenericSetTemplate[A, Set] with SetLike[A, Set[A]]
trait SetLike [A, +This <: SetLike[A, This] with Set[A]] extends IterableLike[A, This] with Addable[A, This] with Subtractable[A, This]
trait SetProxy [A] extends Set[A] with SetProxyLike[A, Set[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 SetProxyLike [A, +This <: SetLike[A, This] with Set[A]] extends SetLike[A, This] with IterableProxyLike[A, This]
This trait implements a proxy for sets. It forwards all calls to a different set.
trait SortedMap [A, +B] extends Map[A, B] with SortedMapLike[A, B, SortedMap[A, B]]
A map whose keys are sorted.
trait SortedMapLike [A, +B, +This <: SortedMapLike[A, B, This] with SortedMap[A, B]] extends Sorted[A, This] with MapLike[A, B, This]
A template for maps whose keys are sorted. To create a concrete sorted map, you need to implement the rangeImpl method, in addition to those of `MapLike`.
trait SortedSet [A] extends Set[A] with SortedSetLike[A, SortedSet[A]]
A sorted set.
trait SortedSetLike [A, +This <: SortedSet[A] with SortedSetLike[A, This]] extends Sorted[A, This] with SetLike[A, This]
A template for sets which are sorted.
trait Traversable [+A] extends TraversableLike[A, Traversable[A]] with GenericTraversableTemplate[A, Traversable]
trait TraversableLike [+A, +Repr] extends HasNewBuilder[A, Repr] with AnyRef
trait TraversableProxy [+A] extends Traversable[A] with TraversableProxyLike[A, Traversable[A]]
This trait implements a proxy for traversable objects. It forwards all calls to a different traversable object
trait TraversableProxyLike [+A, +This <: TraversableLike[A, This] with Traversable[A]] extends TraversableLike[A, This] with Proxy
This trait implements a proxy for traversable objects. It forwards all calls to a different traversable object
trait TraversableView [+A, +Coll] extends TraversableViewLike[A, Coll, TraversableView[A, Coll]]
trait TraversableViewLike [+A, +Coll, +This <: TraversableView[A, Coll] with TraversableViewLike[A, Coll, This]] extends Traversable[A] with TraversableLike[A, This]
Object Summary
object BitSet extends BitSetFactory[BitSet]
A factory object for bitsets
object BitSetLike extends AnyRef
object IndexedSeq extends SeqFactory[IndexedSeq]
object IndexedSeqView extends AnyRef
object Iterable extends TraversableFactory[Iterable]
Factory methods and utilities for instances of type Iterable.
object IterableView extends AnyRef
object Iterator extends AnyRef
The Iterator object provides various functions for creating specialized iterators.
object JavaConversions extends AnyRef
object LinearSeq extends SeqFactory[LinearSeq]
object Map extends MapFactory[Map]
object Seq extends SeqFactory[Seq]
Factory object for Seq trait.
object SeqLike extends AnyRef
Contains a KMP implementation, based on the undoubtedly reliable wikipedia entry.
object SeqView extends AnyRef
object Set extends SetFactory[Set]
Factory object for Set class.
object SortedMap extends SortedMapFactory[SortedMap]
object SortedSet extends SortedSetFactory[SortedSet]
object Traversable extends TraversableFactory[Traversable]
Factory methods and utilities for instances of type Traversable.
object TraversableView extends AnyRef
object package extends AnyRef