scala

AnyVal

sealed trait AnyVal extends Any

AnyVal is the root class of all value types, which describe values not implemented as objects in the underlying host system. The value classes are specified in SLS 12.2.

The standard implementation includes nine AnyVal subtypes:

Double, Float, Long, Int, Char, Short, and Byte are the numeric value types.

Unit and Boolean are the non-numeric value types.

Other groupings:

The subrange types are Byte, Short, and Char. The integer types include the subrange types as well as Int and Long. The floating point types are Float and Double.

Source
AnyVal.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. AnyVal
  2. Any
Visibility
  1. Public
  2. All