case class MappedTypeHints(hintMap: Map[Class[_], String], typeHintFieldName: String = "jsonClass") extends TypeHints with Product with Serializable
Use a map of keys as type hints. Values may not be mapped by multiple keys
- Source
- MappedTypeHints.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- MappedTypeHints
- Serializable
- Product
- Equals
- TypeHints
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new MappedTypeHints(hintMap: Map[Class[_], String], typeHintFieldName: String = "jsonClass")
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(hints: TypeHints): TypeHints
Adds the specified type hints to this type hints.
Adds the specified type hints to this type hints.
- Definition Classes
- TypeHints
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def classFor(hint: String, parent: Class[_]): Option[Class[_]]
Return type for given hint.
Return type for given hint.
- Definition Classes
- MappedTypeHints → TypeHints
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def components: List[TypeHints]
- Definition Classes
- TypeHints
- def containsHint(clazz: Class[_]): Boolean
- Definition Classes
- TypeHints
- def deserialize: PartialFunction[(String, JObject), Any]
- Definition Classes
- TypeHints
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hintFor(clazz: Class[_]): Option[String]
Return hint for given type.
Return hint for given type.
- Definition Classes
- MappedTypeHints → TypeHints
- val hintMap: Map[Class[_], String]
- val hints: List[Class[_]]
- Definition Classes
- MappedTypeHints → TypeHints
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isTypeHintField(f: JField, parent: Class[_]): Boolean
- Definition Classes
- TypeHints
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def serialize: PartialFunction[Any, JObject]
- Definition Classes
- TypeHints
- def shouldExtractHints(clazz: Class[_]): Boolean
- Definition Classes
- TypeHints
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val typeHintFieldName: String
The name of the field in JSON where type hints are added (jsonClass by default)
The name of the field in JSON where type hints are added (jsonClass by default)
- Definition Classes
- MappedTypeHints → TypeHints
- def typeHintFieldNameForClass(clazz: Class[_]): Option[String]
- Definition Classes
- TypeHints
- def typeHintFieldNameForHint(hint: String, parent: Class[_]): Option[String]
- Definition Classes
- TypeHints
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()