Any
Companion to scala.Any
- Source
- __.scala
Member
Specialized instance determines custom implementation of given type containers. Usually it is used by inlined methods and gets resolved by the compiler, so threre is zero runtime cost.
For example, consider specialized stream method map, which returns different types of stream:
val floats : Float.Stream = (1 <> 9).stream.map(_.toFloat)
val longs : Long.Stream = (1 <> 9).stream.map(_.toLong)
val strings : Stream[String] = (1 <> 9).stream.map(_.toString)
- Source
- __.scala
Specialized instance determines custom implementation of given type containers. Usually it is used by inlined methods and gets resolved by the compiler, so threre is zero runtime cost.
For example, consider specialized stream method map, which returns different types of stream:
val floats : Float.Stream = (1 <> 9).stream.map(_.toFloat)
val longs : Long.Stream = (1 <> 9).stream.map(_.toLong)
val strings : Stream[String] = (1 <> 9).stream.map(_.toString)
- Source
- __.scala
Type
All Boolean-like types
All Boolean-like types
The type is needed for specialized Boolean based generic containers. From JVM prospective Any.Boolean is just a Boolean primitive.
- Source
- __.scala
All Byte-like types
All Byte-like types
The type is needed for specialized Byte based generic containers. From JVM prospective Any.Byte is just a Byte primitive.
- Source
- __.scala
All Char-like types
All Char-like types
The type is needed for specialized Char based generic containers. From JVM prospective Any.Char is just a Char primitive.
- Source
- __.scala
All Double-like types
All Double-like types
The type is needed for specialized Double based generic containers. From JVM prospective Any.Double is just a Double primitive.
- Source
- __.scala
All Float-like types
All Float-like types
The type is needed for specialized Float based generic containers. From JVM prospective Any.Float is just a Float primitive.
- Source
- __.scala
All Int-like types
All Int-like types
The type is needed for specialized Int based generic containers. From JVM prospective Any.Int is just an Int primitive.
- Source
- __.scala
All Long-like types
All Long-like types
The type is needed for specialized Long based generic containers. From JVM prospective Any.Long is just a Long primitive.
- Source
- __.scala
All Short-like types
All Short-like types
The type is needed for specialized Short based generic containers. From JVM prospective Any.Short is just a Short primitive.
- Source
- __.scala