Packages

object Val

A utility object for creating Formats for Vals.

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

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 asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. def format[A, V <: Val[A]](f: (A) ⇒ V)(implicit fmt: Format[A]): Format[V]

    Returns a `Format` for a `Val`, which treats the Val as its contained value.

    Returns a `Format` for a `Val`, which treats the Val as its contained value.

    A

    the type of the contained value

    V

    the type of the Val

    f

    a function for constructing a Val from a value

    fmt

    a Format for the value contained in the Val

    returns

    a Format for the specified Val

  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  16. def reads[A, V <: Val[A]](f: (A) ⇒ V)(implicit arg0: Reads[A]): Reads[V]

    Returns a `Reads` for a `Val`, which treats the Val as its contained value.

    Returns a `Reads` for a `Val`, which treats the Val as its contained value.

    A

    the type of the contained value

    V

    the type of the Val

    f

    a function for constructing a Val from a value

    returns

    a Reads for the specified Val

  17. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. def writes[A, V <: Val[A]](implicit arg0: Writes[A]): Writes[V]

    Returns a `Writes` for a `Val`, which treats the Val as its contained value.

    Returns a `Writes` for a `Val`, which treats the Val as its contained value.

    A

    the type of the contained value

    V

    the type of the Val

    returns

    a Writes for the specified Val

  23. def writes[A, V <: Val[A]](f: (A) ⇒ V)(implicit arg0: Writes[A]): Writes[V]

    Returns a `Writes` for a `Val`, which treats the Val as its contained value.

    Returns a `Writes` for a `Val`, which treats the Val as its contained value.

    A

    the type of the contained value

    V

    the type of the Val

    f

    a function for constructing a Val from a value

    returns

    a Writes for the specified Val

    Annotations
    @inline()
    Note

    The function f is not used to construct the Writes; merely to drive type inference. This method is to mirror reads and format, and to make invocations look cleaner. When a case class is used for the Val, such as the one that follows:

    case class Foo(value: Bar) extends AnyVal with Val[Bar]

    the class's companion object can be used for the function f, yielding the invocation Val.writes(Foo). This conveys the meaning of the method invocation well, and is less awkward than Val.writes[Bar, Foo].

Inherited from AnyRef

Inherited from Any

Ungrouped