zio.blocks.streams.JvmType
See theJvmType companion object
Tag identifying which JVM type A corresponds to: one of the 8 primitives, or AnyRef for reference types.
Used throughout the streaming library for runtime specialization dispatch:
- zio.blocks.streams.io.Reader checks
jvmTypeto select sentinel-return pull paths (readInt,readLong, etc.). - zio.blocks.streams.Sink dispatches on
jvmTypeto avoid boxing in drain, fold, and collect loops.
Identity comparison (eq) is safe because each variant is a singleton case object.
Value parameters
- ordinal
-
Stable integer identifier for serialization or indexing.
Attributes
- Companion
- object
- Source
- JvmType.scala
- Graph
-
- Supertypes
- Known subtypes
Members list
In this article