Packages

trait Hints extends AnyRef

A hint is an arbitrary piece of data that can be added to a schema, at the struct level, or at the field/member level.

You can think of it as an annotation that can communicate additional information to encoders/decoders (for instance, a change in a label, a regex pattern some string should abide by, a range, etc)

This Hints interface is a container for hints.

Under the hood, the hints are composed of two maps : one for member-level hints, one for target-level hints. Member-level hints typically hold values corresponding to member traits, whereas target hints hold values corresponding to normal data shapes.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Hints
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def ++(other: Hints): Hints

    Concatenates two set of hints.

    Concatenates two set of hints. The levels are concatenated independently.

  2. abstract def addMemberHints(hints: Hints): Hints

    Add hints to the member-level.

  3. abstract def addTargetHints(hints: Hints): Hints

    Add hints to the target-level.

  4. abstract def all: Iterable[Binding]
  5. abstract def get[A](implicit key: ShapeTag[A]): Option[A]
  6. abstract def isEmpty: Boolean
  7. abstract def memberHints: Hints

    Provides an instance of hints containing only the member-level hints.

  8. abstract def memberHintsMap: Map[ShapeId, Binding]
  9. abstract def targetHints: Hints

    Provides an instance of hints containing only the target-level hints.

  10. abstract def targetHintsMap: Map[ShapeId, Binding]
  11. abstract def toMap: Map[ShapeId, Binding]

    Returns a map of hints from both level, the member-level having priority over the target-level one.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def add(hints: Hint*): Hints

    Add hints to the member level

  5. final def addMemberHints(hints: Hint*): Hints

    Add hints to the member-level.

  6. final def addTargetHints(hints: Hint*): Hints

    Add hints to the target-level.

  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. final def expand[A, B](f: (A) => Hint)(implicit key: ShapeTag[A]): Hints

    Adds a new hint provided a specific hint is present

  12. final def filter(predicate: (Hint) => Boolean): Hints
  13. final def filterNot(predicate: (Hint) => Boolean): Hints
  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  15. final def get[T](nt: Newtype[T]): Option[Type]
  16. final def get[A](key: Has[A]): Option[A]
  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. final def has[A](implicit key: ShapeTag[A]): Boolean
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped