Package

scala

Permalink

package scala

Linear Supertypes
Content Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. scala
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type ::[A] = scala.collection.immutable.::[A]

    Permalink
  2. type AbstractMethodError = java.lang.AbstractMethodError

    Permalink
  3. abstract class Any

    Permalink

    Class Any is the root of the Scala class hierarchy.

    Class Any is the root of the Scala class hierarchy. Every class in a Scala execution environment inherits directly or indirectly from this class.

    Starting with Scala 2.10 it is possible to directly extend Any using universal traits. A universal trait is a trait that extends Any, only has defs as members, and does no initialization.

    The main use case for universal traits is to allow basic inheritance of methods for value classes. For example,

    trait Printable extends Any {
      def print(): Unit = println(this)
    }
    class Wrapper(val underlying: Int) extends AnyVal with Printable
    
    val w = new Wrapper(3)
    w.print()

    See the Value Classes and Universal Traits for more details on the interplay of universal traits and value classes.

  4. type ArrayIndexOutOfBoundsException = java.lang.ArrayIndexOutOfBoundsException

    Permalink
  5. type BigDecimal = scala.math.BigDecimal

    Permalink
  6. type BigInt = scala.math.BigInt

    Permalink
  7. type BufferedIterator[+A] = scala.collection.BufferedIterator[A]

    Permalink
  8. type ClassCastException = java.lang.ClassCastException

    Permalink
  9. type Either[+A, +B] = scala.util.Either[A, B]

    Permalink
  10. type Equiv[T] = scala.math.Equiv[T]

    Permalink
  11. type Error = java.lang.Error

    Permalink
  12. type Exception = java.lang.Exception

    Permalink
  13. type Fractional[T] = scala.math.Fractional[T]

    Permalink
  14. type IllegalArgumentException = java.lang.IllegalArgumentException

    Permalink
  15. type IndexOutOfBoundsException = java.lang.IndexOutOfBoundsException

    Permalink
  16. type IndexedSeq[+A] = scala.collection.IndexedSeq[A]

    Permalink
  17. type Integral[T] = scala.math.Integral[T]

    Permalink
  18. type InterruptedException = java.lang.InterruptedException

    Permalink
  19. type Iterable[+A] = scala.collection.Iterable[A]

    Permalink
  20. type Iterator[+A] = scala.collection.Iterator[A]

    Permalink
  21. type Left[+A, +B] = scala.util.Left[A, B]

    Permalink
  22. type List[+A] = scala.collection.immutable.List[A]

    Permalink
  23. type NoSuchElementException = java.util.NoSuchElementException

    Permalink
  24. abstract final class Nothing extends Any

    Permalink

    Nothing is - together with scala.Null - at the bottom of Scala's type hierarchy.

    Nothing is - together with scala.Null - at the bottom of Scala's type hierarchy.

    Nothing is a subtype of every other type (including scala.Null); there exist no instances of this type. Although type Nothing is uninhabited, it is nevertheless useful in several ways. For instance, the Scala library defines a value scala.collection.immutable.Nil of type List[Nothing]. Because lists are covariant in Scala, this makes scala.collection.immutable.Nil an instance of List[T], for any element of type T.

    Another usage for Nothing is the return type for methods which never return normally. One example is method error in scala.sys, which always throws an exception.

  25. abstract final class Null extends AnyRef

    Permalink

    Null is - together with scala.Nothing - at the bottom of the Scala type hierarchy.

    Null is - together with scala.Nothing - at the bottom of the Scala type hierarchy.

    Null is a subtype of all reference types; its only instance is the null reference. Since Null is not a subtype of value types, null is not a member of any such type. For instance, it is not possible to assign null to a variable of type scala.Int.

  26. type NullPointerException = java.lang.NullPointerException

    Permalink
  27. type NumberFormatException = java.lang.NumberFormatException

    Permalink
  28. type Numeric[T] = scala.math.Numeric[T]

    Permalink
  29. type Ordered[T] = scala.math.Ordered[T]

    Permalink
  30. type Ordering[T] = scala.math.Ordering[T]

    Permalink
  31. type PartialOrdering[T] = scala.math.PartialOrdering[T]

    Permalink
  32. type PartiallyOrdered[T] = scala.math.PartiallyOrdered[T]

    Permalink
  33. type Range = scala.collection.immutable.Range

    Permalink
  34. type Right[+A, +B] = scala.util.Right[A, B]

    Permalink
  35. type RuntimeException = java.lang.RuntimeException

    Permalink
  36. type Seq[+A] = scala.collection.Seq[A]

    Permalink
  37. type Stream[+A] = scala.collection.immutable.Stream[A]

    Permalink
  38. type StringBuilder = scala.collection.mutable.StringBuilder

    Permalink
  39. type StringIndexOutOfBoundsException = java.lang.StringIndexOutOfBoundsException

    Permalink
  40. type Throwable = java.lang.Throwable

    Permalink
  41. type Traversable[+A] = scala.collection.Traversable[A]

    Permalink
  42. type TraversableOnce[+A] = scala.collection.TraversableOnce[A]

    Permalink
  43. type UnsupportedOperationException = java.lang.UnsupportedOperationException

    Permalink
  44. type Vector[+A] = scala.collection.immutable.Vector[A]

    Permalink

Value Members

  1. val #::: scala.collection.immutable.Stream.#::.type

    Permalink
  2. val +:: scala.collection.+:.type

    Permalink
  3. val :+: scala.collection.:+.type

    Permalink
  4. val ::: scala.collection.immutable.::.type

    Permalink
  5. val AnyRef: Specializable

    Permalink
  6. val BigDecimal: scala.math.BigDecimal.type

    Permalink
  7. val BigInt: scala.math.BigInt.type

    Permalink
  8. val Either: scala.util.Either.type

    Permalink
  9. val Equiv: scala.math.Equiv.type

    Permalink
  10. val Fractional: scala.math.Fractional.type

    Permalink
  11. val IndexedSeq: scala.collection.IndexedSeq.type

    Permalink
  12. val Integral: scala.math.Integral.type

    Permalink
  13. val Iterable: scala.collection.Iterable.type

    Permalink
  14. val Iterator: scala.collection.Iterator.type

    Permalink
  15. val Left: scala.util.Left.type

    Permalink
  16. val List: scala.collection.immutable.List.type

    Permalink
  17. val Nil: scala.collection.immutable.Nil.type

    Permalink
  18. val Numeric: scala.math.Numeric.type

    Permalink
  19. val Ordered: scala.math.Ordered.type

    Permalink
  20. val Ordering: scala.math.Ordering.type

    Permalink
  21. val Range: scala.collection.immutable.Range.type

    Permalink
  22. val Right: scala.util.Right.type

    Permalink
  23. val Seq: scala.collection.Seq.type

    Permalink
  24. val Stream: scala.collection.immutable.Stream.type

    Permalink
  25. val StringBuilder: scala.collection.mutable.StringBuilder.type

    Permalink
  26. val Traversable: scala.collection.Traversable.type

    Permalink
  27. val Vector: scala.collection.immutable.Vector.type

    Permalink
  28. package reflect

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped