object newtype
- Alphabetic
- By Inheritance
- newtype
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- type Newtype[Repr, Ops] = AnyRef { type Tag = shapeless.newtype.NewtypeTag[Repr,Ops] }
New type with
Repras representation type and operations provided byOps.New type with
Repras representation type and operations provided byOps.Values of the newtype will not add any additional boxing beyond what's required for values of the representation type to conform to Any. In practice this means that value types will receive their standard Scala AnyVal boxing and reference types will be unboxed.
- trait NewtypeTag[Repr, Ops] extends AnyRef
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply[Repr, Ops](r: Repr): Newtype[Repr, Ops]
Creates a value of the newtype given a value of its representation type.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- implicit def newtypeOps[Repr, Ops](t: Newtype[Repr, Ops])(implicit mkOps: (Repr) => Ops): Ops
Implicit conversion of newtype to
Opstype for the selection ofOpsnewtype operations.Implicit conversion of newtype to
Opstype for the selection ofOpsnewtype operations.The implicit conversion
Repr => Opswould typically be provided by publishing the companion object of theOpstype as an implicit value. - final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()