final class Meta[A] extends AnyRef
Convenience for introducing a symmetric Get
/Put
pair into implicit scope,
and for deriving new symmetric pairs. It's important to understand that
Meta
should never be demanded by user methods; instead demand both Get
and Put
. The reason for this is that while Meta
implies Get
and Put
,
the presence of both Get
and Put
does *not* imply Meta
.
- Source
- meta.scala
- Alphabetic
- By Inheritance
- Meta
- AnyRef
- Any
- Hide All
- Show All
- 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
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- val get: Get[A]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def imap[B](f: (A) => B)(g: (B) => A): Meta[B]
Meta is an invariant functor.
Meta is an invariant functor. Prefer
timap
as it provides for better diagnostics. - final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- val put: Put[A]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def tiemap[B](f: (A) => Either[String, B])(g: (B) => A)(implicit arg0: TypeName[B], showA: Show[A]): Meta[B]
Variant of
timap
that allows the reading conversion to fail. - def timap[B](f: (A) => B)(g: (B) => A)(implicit arg0: TypeName[B]): Meta[B]
Variant of
imap
that takes a type tag, to aid in diagnostics. - def toString(): String
- Definition Classes
- AnyRef → Any
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)