abstract class JsonHMapKey[V] extends HMapKey[V]
A key of a JsonHMap.
- V
the type of the value associated with this key
- Annotations
- @deprecated
- Deprecated
(Since version 2017/07/13) This will be removed in a future version
- Alphabetic
- By Inheritance
- JsonHMapKey
- HMapKey
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
JsonHMapKey(sym: Symbol)(implicit reg: JsonKeyRegistry, jsonFormat: JsonFormat[V])
creates a new key and adds it to a registry.
creates a new key and adds it to a registry.
- sym
the JSON key associated with this map key
- reg
the registry with which this key is to be associated
- jsonFormat
a
JsonFormatwhich enables a key to serialize and deserialize its associated value
Type Members
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
equals(oth: Any): Boolean
- Definition Classes
- HMapKey → AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- val sym: Symbol
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
lazy val
toHMapKey: HMapKey[Value]
Returns a stable copy of this
HMapKeywithout the JSON support.Returns a stable copy of this
HMapKeywithout the JSON support. Useful for creating serializable equivalent keys.- returns
a stable copy of this
HMapKeywithout the JSON support.
-
def
toJson(v: Value): JsValue
Converts an object of this key's value type to JSON.
Converts an object of this key's value type to JSON.
- v
the object to convert
- returns
the given object as a JSON value.
-
def
toKey: JsonHMapKey[Value]
Returns this key, typed as a key associated with values of type
Value.Returns this key, typed as a key associated with values of type
Value.- returns
this key, typed as a key associated with values of type
Value.
- Definition Classes
- JsonHMapKey → HMapKey
-
def
toString(): String
- Definition Classes
- JsonHMapKey → AnyRef → Any
-
def
toValue(v: JsValue): Value
Converts a JSON value to an object of this key's value type.
Converts a JSON value to an object of this key's value type.
- v
the JSON value to convert
- returns
the given JSON value as an object.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )