Class

io.udash.rest

RestDataWrapperCompanion

Related Doc: package rest

Permalink

abstract class RestDataWrapperCompanion[Wrapped, T] extends TransparentWrapperCompanion[Wrapped, T]

Base class for companion objects of wrappers over other data types (i.e. case classes with single field). This companion ensures instances of all the REST typeclasses (serialization, schema, etc.) for wrapping type assuming that these instances are available for the wrapped type.

Using this base companion class makes the wrapper class effectively "transparent", i.e. as if it was annotated with transparent annotation.

Example:
  1. case class UserId(id: String) extends AnyVal
    object UserId extends RestDataWrapperCompanion[String, UserId]
Linear Supertypes
TransparentWrapperCompanion[Wrapped, T], (Wrapped) ⇒ T, TransparentWrapping[Wrapped, T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RestDataWrapperCompanion
  2. TransparentWrapperCompanion
  3. Function1
  4. TransparentWrapping
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RestDataWrapperCompanion()(implicit instances: MacroInstances[DefaultRestImplicits, () ⇒ NameAndAdjusters[T]])

    Permalink

Abstract Value Members

  1. abstract def apply(r: Wrapped): T

    Permalink
    Definition Classes
    TransparentWrapperCompanion → Function1
  2. abstract def unapply(t: T): Option[Wrapped]

    Permalink
    Definition Classes
    TransparentWrapperCompanion

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def andThen[A](g: (T) ⇒ A): (Wrapped) ⇒ A

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. implicit def bodyAsRaw(implicit wrappedAsRaw: AsRaw[HttpBody, Wrapped]): AsRaw[HttpBody, T]

    Permalink
  7. implicit def bodyAsReal(implicit wrappedAsRaw: AsReal[HttpBody, Wrapped]): AsReal[HttpBody, T]

    Permalink
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  9. def compose[A](g: (A) ⇒ Wrapped): (A) ⇒ T

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. implicit def jsonAsRaw(implicit wrappedAsRaw: AsRaw[JsonValue, Wrapped]): AsRaw[JsonValue, T]

    Permalink
  16. implicit def jsonAsReal(implicit wrappedAsRaw: AsReal[JsonValue, Wrapped]): AsReal[JsonValue, T]

    Permalink
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  20. implicit def plainAsRaw(implicit wrappedAsRaw: AsRaw[PlainValue, Wrapped]): AsRaw[PlainValue, T]

    Permalink
  21. implicit def plainAsReal(implicit wrappedAsRaw: AsReal[PlainValue, Wrapped]): AsReal[PlainValue, T]

    Permalink
  22. implicit def responseAsRaw(implicit wrappedAsRaw: AsRaw[RestResponse, Wrapped]): AsRaw[RestResponse, T]

    Permalink
  23. implicit def responseAsReal(implicit wrappedAsRaw: AsReal[RestResponse, Wrapped]): AsReal[RestResponse, T]

    Permalink
  24. implicit def restMediaTypes(implicit wrappedMediaTypes: RestMediaTypes[Wrapped]): RestMediaTypes[T]

    Permalink
  25. implicit def restRequestBody(implicit wrappedBody: RestRequestBody[Wrapped]): RestRequestBody[T]

    Permalink
  26. implicit def restResponses(implicit wrappedResponses: RestResponses[Wrapped]): RestResponses[T]

    Permalink
  27. implicit def restSchema(implicit wrappedSchema: RestSchema[Wrapped]): RestSchema[T]

    Permalink
  28. implicit def self: TransparentWrapping[Wrapped, T]

    Permalink
    Definition Classes
    TransparentWrapperCompanion
  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. def toString(): String

    Permalink
    Definition Classes
    Function1 → AnyRef → Any
  31. final def unwrap(t: T): Wrapped

    Permalink
    Definition Classes
    TransparentWrapperCompanion → TransparentWrapping
  32. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wrap(r: Wrapped): T

    Permalink
    Definition Classes
    TransparentWrapperCompanion → TransparentWrapping

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from TransparentWrapperCompanion[Wrapped, T]

Inherited from (Wrapped) ⇒ T

Inherited from TransparentWrapping[Wrapped, T]

Inherited from AnyRef

Inherited from Any

Ungrouped