JvmType

zio.blocks.streams.JvmType
See theJvmType companion class
object JvmType

Companion enumerating all 8 JVM primitive types plus the AnyRef fallback for reference types. Also contains JvmType.Infer, the type-class that maps Scala types to their JvmType at compile time.

Attributes

Companion
class
Source
JvmType.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
JvmType.type

Members list

Type members

Classlikes

case object AnyRef extends JvmType

Any reference type (String, case classes, etc.).

Any reference type (String, case classes, etc.).

Attributes

Source
JvmType.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class JvmType
class Object
trait Matchable
class Any
Show all
Self type
AnyRef.type
case object Boolean extends JvmType

Scala Boolean / Java boolean.

Scala Boolean / Java boolean.

Attributes

Source
JvmType.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class JvmType
class Object
trait Matchable
class Any
Show all
Self type
Boolean.type
case object Byte extends JvmType

Scala Byte / Java byte.

Scala Byte / Java byte.

Attributes

Source
JvmType.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class JvmType
class Object
trait Matchable
class Any
Show all
Self type
Byte.type
case object Char extends JvmType

Scala Char / Java char.

Scala Char / Java char.

Attributes

Source
JvmType.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class JvmType
class Object
trait Matchable
class Any
Show all
Self type
Char.type
case object Double extends JvmType

Scala Double / Java double.

Scala Double / Java double.

Attributes

Source
JvmType.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class JvmType
class Object
trait Matchable
class Any
Show all
Self type
Double.type
case object Float extends JvmType

Scala Float / Java float.

Scala Float / Java float.

Attributes

Source
JvmType.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class JvmType
class Object
trait Matchable
class Any
Show all
Self type
Float.type
object Infer

Implicit instances for all 8 JVM primitive types and a low-priority fallback.

Implicit instances for all 8 JVM primitive types and a low-priority fallback.

Attributes

Companion
trait
Source
JvmType.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Infer.type
sealed trait Infer[A]

A type class that records at compile time which JVM type A maps to.

A type class that records at compile time which JVM type A maps to.

Invariant in A, so primitive evidence cannot accidentally satisfy Infer[Nothing] and fallback evidence cannot drive output inference toward Any when the precise primitive type is available.

Adding (implicit jt: JvmType.Infer[A]) to a method is always source-compatible — it never fails to resolve.

Attributes

Companion
object
Source
JvmType.scala
Supertypes
class Object
trait Matchable
class Any
case object Int extends JvmType

Scala Int / Java int.

Scala Int / Java int.

Attributes

Source
JvmType.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class JvmType
class Object
trait Matchable
class Any
Show all
Self type
Int.type
case object Long extends JvmType

Scala Long / Java long.

Scala Long / Java long.

Attributes

Source
JvmType.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class JvmType
class Object
trait Matchable
class Any
Show all
Self type
Long.type
case object Short extends JvmType

Scala Short / Java short.

Scala Short / Java short.

Attributes

Source
JvmType.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class JvmType
class Object
trait Matchable
class Any
Show all
Self type
Short.type

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def fromOrdinal(i: Int): JvmType

Returns the JvmType for the given ordinal index (0–8).

Returns the JvmType for the given ordinal index (0–8).

Attributes

Source
JvmType.scala