Scala 2.8.0.Beta1-RC2 API

This document is the API specification for Scala Library

Class Summary
case final class :: [B](private hd : B, val tl : List[B]) extends List[B]
A non empty list characterized by a head and a tail.
abstract class BitSet extends Set[Int] with BitSet with BitSetLike[BitSet]
A base class for immutable bit sets.
class HashMap [A, +B] extends Map[A, B] with MapLike[A, B, HashMap[A, B]] with HashTable[A]
class HashSet [A] extends Set[A] with GenericSetTemplate[A, HashSet] with SetLike[A, HashSet[A]] with FlatHashTable[A]
trait IndexedSeq [+A] extends Seq[A] with IndexedSeq[A] with GenericTraversableTemplate[A, IndexedSeq] with IndexedSeqLike[A, IndexedSeq[A]]
A subtrait of collection.IndexedSeq which represents sequences that cannot be mutated.
sealed abstract class IntMap [+T] extends Map[Int, T] with MapLike[Int, T, IntMap[T]]
Specialised immutable map structure for integer keys, based on Fast Mergeable Integer Maps by Okasaki and Gill. Essentially a trie based on binary digits of the the integers.
trait Iterable [+A] extends Traversable[A] with Iterable[A] with GenericTraversableTemplate[A, Iterable] with IterableLike[A, Iterable[A]]
A subtrait of scala.collection.Iterable which represents iterables that cannot be mutated.
trait LinearSeq [+A] extends Seq[A] with LinearSeq[A] with GenericTraversableTemplate[A, LinearSeq] with LinearSeqLike[A, LinearSeq[A]]
A subtrait of collection.LinearSeq which represents sequences that cannot be mutated.
sealed abstract class List [+A] extends LinearSeq[A] with Product with GenericTraversableTemplate[A, List] with LinearSeqLike[A, List[A]]
A class representing an ordered collection of elements of type a. This class comes with two implementing case classes scala.Nil and scala.:: that implement the abstract members isEmpty, head and tail.
class ListMap [A, +B] extends Map[A, B] with MapLike[A, B, ListMap[A, B]]
This class implements immutable maps using a list-based data structure. Instances of ListMap represent empty maps; they can be either created by calling the constructor directly, or by applying the function ListMap.empty.
class ListSet [A] extends Set[A] with GenericSetTemplate[A, ListSet] with SetLike[A, ListSet[A]]
This class implements immutable sets using a list-based data structure. Instances of ListSet represent empty sets; they can be either created by calling the constructor directly, or by applying the function ListSet.empty.
sealed abstract class LongMap [+T] extends Map[Long, T] with MapLike[Long, T, LongMap[T]]
Specialised immutable map structure for long keys, based on Fast Mergeable Long Maps by Okasaki and Gill. Essentially a trie based on binary digits of the the integers.
trait Map [A, +B] extends Iterable[(A, B)] with Map[A, B] with MapLike[A, B, Map[A, B]]
trait MapLike [A, +B, +This <: MapLike[A, B, This] with Map[A, B]] extends MapLike[A, B, This]
trait MapProxy [A, +B] extends Map[A, B] with MapProxyLike[A, B, Map[A, B]]
abstract class NumericRange [+T](val start : T, val end : T, val step : T, val isInclusive : Boolean, implicit num : Integral[T]) extends IndexedSeq[T]
class PagedSeq [T](more : (Array[T], Int, Int) => Int, first1 : scala.collection.immutable.Page[T], start : Int, end : Int, implicit evidence$3 : ClassManifest[T]) extends IndexedSeq[T]
An implementation of lazily computed sequences, where elements are stored in ``pages'', i.e. arrays of fixed size.
class Queue [+A](protected val in : List[A], protected val out : List[A]) extends Seq[A]
Queue objects implement data structures that allow to insert and retrieve elements in a first-in-first-out (FIFO) manner.
class Range (val start : Int, val end : Int, val step : Int) extends IndexedSeq[Int]
abstract class RedBlack [A] extends AnyRef
trait Seq [+A] extends Iterable[A] with Seq[A] with GenericTraversableTemplate[A, Seq] with SeqLike[A, Seq[A]]
A subtrait of collection.Seq which represents sequences that cannot be mutated.
trait Set [A] extends Iterable[A] with Set[A] with GenericSetTemplate[A, Set] with SetLike[A, Set[A]]
trait SetProxy [A] extends Set[A] with SetProxyLike[A, Set[A]]
trait SortedMap [A, +B] extends Map[A, B] with SortedMap[A, B] with MapLike[A, B, SortedMap[A, B]] with SortedMapLike[A, B, SortedMap[A, B]]
A map whose keys are sorted.
trait SortedSet [A] extends Set[A] with SortedSet[A] with SortedSetLike[A, SortedSet[A]]
A sorted set.
class Stack [+A](protected val elems : List[A]) extends Seq[A]
This class implements immutable stacks using a list-based data structure. Instances of Stack represent empty stacks; they can be either created by calling the constructor directly, or by applying the function Stack.Empty.
abstract class Stream [+A] extends LinearSeq[A] with GenericTraversableTemplate[A, Stream] with LinearSeqLike[A, Stream[A]]
trait StringLike [+Repr] extends IndexedSeqLike[Char, Repr] with Ordered[java.lang.String]
class StringOps (val override repr : java.lang.String) extends StringLike[java.lang.String]
trait Traversable [+A] extends Traversable[A] with GenericTraversableTemplate[A, Traversable] with TraversableLike[A, Traversable[A]] with Immutable
A subtrait of collection.Traversable which represents traversables that cannot be mutated.
class TreeHashMap extends AnyRef
class TreeMap [A, +B](val override size : Int, t : Tree[B], val implicit ordering : Ordering[A]) extends RedBlack[A] with SortedMap[A, B] with SortedMapLike[A, B, TreeMap[A, B]] with MapLike[A, B, TreeMap[A, B]]
This class implements immutable maps using a tree.
class TreeSet [A](val override size : Int, t : Tree[Unit], val implicit ordering : Ordering[A]) extends RedBlack[A] with SortedSet[A] with SortedSetLike[A, TreeSet[A]]
This class implements immutable sets using a tree.
final class Vector [+A](startIndex : Int, endIndex : Int, focus : Int) extends Seq[A] with GenericTraversableTemplate[A, Vector] with SeqLike[A, Vector[A]] with scala.collection.immutable.VectorPointer[A]
final class VectorBuilder [A] extends Builder[A, Vector[A]] with scala.collection.immutable.VectorPointer[A]
final class VectorIterator [+A](_startIndex : Int, _endIndex : Int) extends Iterator[A] with scala.collection.immutable.VectorPointer[A]
class WrappedString (val override self : java.lang.String) extends IndexedSeq[Char] with StringLike[WrappedString] with Proxy
Object Summary
object :: extends AnyRef
object BitSet extends BitSetFactory[BitSet]
A factory object for bitsets
object HashMap extends ImmutableMapFactory[HashMap]
A factory object for immutable HashMaps.
object HashSet extends SetFactory[HashSet]
A factory object for immutable HashSets.
object IndexedSeq extends SeqFactory[IndexedSeq]
object IntMap extends AnyRef
object Iterable extends TraversableFactory[Iterable]
A factory object for the trait Iterable.
object LinearSeq extends SeqFactory[LinearSeq]
object List extends SeqFactory[List]
This object provides methods for creating specialized lists, and for transforming special kinds of lists (e.g. lists of lists).
object ListMap extends ImmutableMapFactory[ListMap]
The canonical factory of ListMap's.
object ListSet extends SetFactory[ListSet]
The canonical factory of ListSet's
object LongMap extends AnyRef
object Map extends ImmutableMapFactory[Map]
case object Nil extends List[Nothing]
The empty list.
object NumericRange extends AnyRef
object PagedSeq extends AnyRef
The PagedSeq object defines a lazy implementations of a random access sequence.
object Queue extends AnyRef
object Range extends AnyRef
object Seq extends SeqFactory[Seq]
object Set extends SetFactory[Set]
object SortedMap extends ImmutableSortedMapFactory[SortedMap]
object SortedSet extends ImmutableSortedSetFactory[SortedSet]
object Stack extends AnyRef
object Stream extends SeqFactory[Stream]
The object Stream provides helper functions to manipulate streams.
object StringLike extends AnyRef
object Traversable extends TraversableFactory[Traversable]
A factory object for the trait Traversable.
object TreeMap extends ImmutableSortedMapFactory[TreeMap]
The canonical factory of TreeMap's.
object TreeSet extends SortedSetFactory[TreeSet]
The canonical factory of TreeSet's.
object Vector extends SeqFactory[Vector]
object WrappedString extends AnyRef