sbt.serialization

SerializedValue

sealed trait SerializedValue extends AnyRef

We serialize to and from this opaque type. The idea is to hide exactly what we can serialize from/to and hide which library we use to do it.

What this will expose is the mechanism of using Pickler/Unpickler to handle unknown serialized values.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SerializedValue
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def hasTag[T](implicit unpickler: Unpickler[T]): Boolean

    Returns true if the supplied unpickler matches the type tag in the SerializedValue.

    Returns true if the supplied unpickler matches the type tag in the SerializedValue. This can return false in some cases where parse[T] could succeed (parse is allowed to use duck typing). So this should only be used when the type to be unpickled is not known for sure and a discriminator is required. The advantages of hasTag over simply attempting to parse are that it doesn't throw an expensive exception on match failure, and it can't accidentally match a structurally-compatible but distinct type.

  2. abstract def parse[T](implicit unpickler: Unpickler[T]): Try[T]

  3. abstract def toJValue: JValue

    Attributes
    protected
  4. abstract def toJsonFile(file: File): Unit

  5. abstract def toJsonString: String

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. final def equals(other: Any): Boolean

    Definition Classes
    SerializedValue → AnyRef → Any
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  12. final def hashCode(): Int

    Definition Classes
    SerializedValue → AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  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( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped