Packages

t

com.twitter.util

WrappedValue

trait WrappedValue[T] extends Any

WrappedValue is a marker interface intended for use by case classes wrapping a single value. The intent is to signal that the underlying value should be directly serialized or deserialized ignoring the wrapping case class.

WrappedValue is a Universal Trait so that it can be used by value classes.

Usage

case class WrapperA(underlying: Int) extends WrappedValue[Int]
case class WrapperB(underlying: Int) extends AnyVal with WrappedValue[Int]
Self Type
WrappedValue[T] with Product
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WrappedValue
  2. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def getClass(): Class[_ <: AnyRef]
    Definition Classes
    Any

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def asString: String
  6. def equals(arg0: Any): Boolean
    Definition Classes
    Any
  7. def hashCode(): Int
    Definition Classes
    Any
  8. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  9. def onlyValue: T
  10. def toString(): String

    Definition Classes
    WrappedValue → Any
    Note

    we'd rather not override toString, but this is required to correctly handle WrappedValue instances used as Map keys.

Inherited from Any

Ungrouped