Short
Companion for scala.Short
This object also defines specialized custom containers for Short type, so the following code can run without boxing:
val s: Short.~ = 1.Short <> 5.Short
val o: Short.Opt = s.readRaw_? // Holds Short.Opt(1)
val l: Short.Pack = s.>< // Holds (2,3,4,5)
- Source
- __.scala
Member
trait _extension
Short Extension Methods
Extension methods universaly avaialble for type scala.Short
- Source
- _extension.scala
object G
Raw Short Generic Specialized Containers
The generic containers are never used directly, but rather as customized shortcuts for specific types.
For example:
Short.G.><[Short]
usually called asShort.Pack
Double.G.Idx[Percent]
usually called asPercent.Idx
Int.G.Pro.Mutable[Day]
usually called asDay.Pro.Mutable
Long.G.Collection[Time]
usually called asTime.Collection
- Source
- __.scala