trait EncoderInstances extends AnyRef
Defines implicit Encoder
instances for any enumeratum ValueEnum
type.
A peculiarity of these Encoder
implementations is that they require an implicit parameter that they do not use:
the Enum
instance. This is meant to make these instances much more restrictive, as otherwise the implicit
resolution mechanism goes completely wild and takes up to 20 minutes to compile something relatively
straightforward.
- Source
- ValueEnumInstances.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- EncoderInstances
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- implicit def byteEnumeratumEncoder[E, D <: ByteEnumEntry, T](implicit arg0: ByteEnum[D], encoder: Encoder[E, Byte, T]): Encoder[E, D, T]
- Annotations
- @nowarn()
- implicit def charEnumeratumEncoder[E, D <: CharEnumEntry, T](implicit arg0: CharEnum[D], encoder: Encoder[E, Char, T]): Encoder[E, D, T]
- Annotations
- @nowarn()
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def enumeratumEncoder[V, E, D <: ValueEnumEntry[V], T](implicit encoder: Encoder[E, V, T]): Encoder[E, D, T]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[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()
- implicit def intEnumeratumEncoder[E, D <: IntEnumEntry, T](implicit arg0: IntEnum[D], encoder: Encoder[E, Int, T]): Encoder[E, D, T]
- Annotations
- @nowarn()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- implicit def longEnumeratumEncoder[E, D <: LongEnumEntry, T](implicit arg0: LongEnum[D], encoder: Encoder[E, Long, T]): Encoder[E, D, T]
- Annotations
- @nowarn()
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- implicit def shortEnumeratumEncoder[E, D <: ShortEnumEntry, T](implicit arg0: ShortEnum[D], encoder: Encoder[E, Short, T]): Encoder[E, D, T]
- Annotations
- @nowarn()
- implicit def stringEnumeratumEncoder[E, D <: StringEnumEntry, T](implicit arg0: StringEnum[D], encoder: Encoder[E, String, T]): Encoder[E, D, T]
- Annotations
- @nowarn()
- 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()