object Decode extends DecodeDerivation
- Alphabetic
- By Inheritance
- Decode
- DecodeDerivation
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
type
Typeclass[T] = Decode[T]
- Definition Classes
- DecodeDerivation
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
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
combine[T](ctx: CaseClass[Decode, T]): Decode[T]
- Definition Classes
- DecodeDerivation
- implicit val decodeBigDecimal: Decode[BigDecimal]
- implicit val decodeBigInt: Decode[BigInt]
- implicit val decodeBoolean: Decode[Boolean]
- implicit val decodeByte: Decode[Byte]
- implicit val decodeChar: Decode[Char]
- implicit val decodeDouble: Decode[Double]
- implicit val decodeDuration: Decode[Duration]
- implicit def decodeEither[L, R](implicit arg0: Decode[L], arg1: Decode[R]): Decode[Either[L, R]]
- implicit val decodeFile: Decode[File]
- implicit val decodeFloat: Decode[Float]
- implicit val decodeInstant: Decode[Instant]
- implicit val decodeInt: Decode[Int]
- implicit def decodeList[A](implicit arg0: Decode[A]): Decode[List[A]]
- implicit val decodeLocalDate: Decode[LocalDate]
- implicit val decodeLocalDateTime: Decode[LocalDateTime]
- implicit val decodeLocalTime: Decode[LocalTime]
- implicit val decodeLong: Decode[Long]
- implicit val decodeOffsetDateTime: Decode[OffsetDateTime]
- implicit val decodeOffsetTime: Decode[OffsetTime]
- implicit def decodeOption[A](implicit arg0: Decode[A]): Decode[Option[A]]
- implicit val decodeShort: Decode[Short]
- implicit val decodeString: Decode[String]
- implicit val decodeUnit: Decode[Unit]
- implicit val decodeUri: Decode[URI]
- implicit val decodeUrl: Decode[URL]
- implicit val decodeUuid: Decode[UUID]
- implicit macro def deriveDecode[T](implicit u: AutoUnlockD): Decode[T]
-
def
dispatch[T](ctx: SealedTrait[Decode, T]): Decode[T]
- Definition Classes
- DecodeDerivation
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
instance[A](f: (DynamicRepr) ⇒ Result[A]): Decode[A]
Create your own typeclass instance with this method.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def macroDeriveDecode[T](c: Context)(u: scala.reflect.macros.whitebox.Context.Tree)(implicit arg0: scala.reflect.macros.whitebox.Context.WeakTypeTag[T]): scala.reflect.macros.whitebox.Context.Tree
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
wrap[A, R](f: (A) ⇒ R)(implicit arg0: Decode[A]): Decode[R]
For a function f, mapping a type A to R, create an instance of Decode that will map a DynamicRepr to R.
For a function f, mapping a type A to R, create an instance of Decode that will map a DynamicRepr to R. This method can use your own instance of Decode for type A, enabling decoding of complex types.
-
def
wrapE[A, L, R](f: (A) ⇒ Either[L, R])(implicit arg0: Decode[A]): Decode[R]
For a function f, mapping a type A to R, and that can fail, create an instance of Decode that will map a DynamicRepr to R.
For a function f, mapping a type A to R, and that can fail, create an instance of Decode that will map a DynamicRepr to R. This method can use your own instance of Decode for type A, enabling decoding of complex types. The eventual error L will be wrapped in a WrappedError.
-
def
wrapO[A, R](f: (A) ⇒ Option[R])(implicit arg0: Decode[A]): Decode[R]
For a function f, mapping a type A to maybe R, create an instance of Decode that will map a DynamicRepr to R.
For a function f, mapping a type A to maybe R, create an instance of Decode that will map a DynamicRepr to R. This method can use your own instance of Decode for type A, enabling decoding of complex types. The absence of value R will be represented by a NilSmartConstructorError.
-
def
wrapT[A, R](f: (A) ⇒ Try[R])(implicit arg0: Decode[A]): Decode[R]
For a function f, mapping a type A to R, and that can fail, create an instance of Decode that will map a DynamicRepr to R.
For a function f, mapping a type A to R, and that can fail, create an instance of Decode that will map a DynamicRepr to R. This method can use your own instance of Decode for type A, enabling decoding of complex types. The eventual throwable error will be wrapped in a WrappedError.
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.