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
- Alphabetic
- By Inheritance
Inherited
- WrappedValue
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asString: String
- def equals(arg0: Any): Boolean
- Definition Classes
- Any
- def hashCode(): Int
- Definition Classes
- Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def onlyValue: T
- 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.