Any

object Any

Companion to scala.Any

Source
__.scala
class java.lang.Object
trait scala.Matchable
class Any

Member

trait _Methods

Universal Extension Methods

Extension methods avaialble for all types

Source
__.scala
class Specialized[A]

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
class Specialized[A]

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

type Array[A] = scala.Array[A] | Any.Primitive.Array[A]

All Array kinds

All Array kinds

All possible Array types supported by JVM.

Source
__.scala
type Boolean = scala.Boolean | Boolean.Opaque

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 Buffer kinds

All Buffer kinds

All supported Buffer implementations.

Source
__.scala
type Byte = scala.Byte | Byte.Opaque

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
type Char = scala.Char | Char.Opaque

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 Collection kinds

All Collection kinds

All supported Collection implementations.

Source
__.scala
type Double = scala.Double | Double.Opaque

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
type Float = scala.Float | Float.Opaque

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
type Idx[A] = Val.Idx[A] | Any.Primitive.Idx[A]

All Idx kinds

All Idx kinds

All supported indexed collection implementations.

Source
__.scala
type Int = scala.Int | Int.Opaque

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
type Long = scala.Long | Long.Opaque

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
type Lookup[A, B] = Val.Lookup[A, B] | Any.Primitive.Lookup[A, B]

All Lookup kinds

All Lookup kinds

All supported lookup colelction implementations.

Source
__.scala

All Opaque kinds

All Opaque kinds

All supported Opaque root types.

Source
__.scala
type Opt[A] = Val.Opt[A] | Any.Primitive.Opt[A]

All Opt kinds

All Opt kinds

All supported Opt implementations.

Source
__.scala
type Pack[A] = Val.Pack[A] | Any.Primitive.Pack[A]

All pack kinds

All pack kinds

All supported pack implementations.

Source
__.scala
type Pro[A] = Val.Pro[A] | Any.Primitive.Pro[A]

All Pro kinds

All Pro kinds

All supported Provider/Property implementations.

Source
__.scala

All range kinds

All range kinds

All supported range implementations.

Source
__.scala
type Set[A] = Val.Set[A] | Any.Primitive.Set[A]

All Set kinds

All Set kinds

All supported Set implementations.

Source
__.scala
type Short = scala.Short | Short.Opaque

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

All stream kinds

All stream kinds

All supported stream implementations.

Source
__.scala