object Types
- Alphabetic
- By Inheritance
- Types
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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 asTypeTag[T](clazz: Class[_ <: T]): scala.reflect.api.JavaUniverse.TypeTag[T]
Convert from the given
Class[T]
to aTypeTag[T]
in the runtime universe.Convert from the given
Class[T]
to aTypeTag[T]
in the runtime universe.Usage
val clazz: Class[T] = ??? val tag: TypeTag[T] = Types.asTypeTag(clazz)
- clazz
the class for which to build the resultant TypeTag
- returns
a
TypeTag[T]
representing the givenClass[T]
.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals[T](thatTypeTag: scala.reflect.api.JavaUniverse.TypeTag[_])(implicit thisTypeTag: scala.reflect.api.JavaUniverse.TypeTag[T]): Boolean
If
thisTypeTag
TypeTag has the same TypeSymbol asthatTypeTag
TypeTag.If
thisTypeTag
TypeTag has the same TypeSymbol asthatTypeTag
TypeTag.- T
type of thisTypeTag
- thatTypeTag
TypeTag to compare
- thisTypeTag
TypeTag to compare
- returns
true if the TypeSymbols are equivalent.
- See also
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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 hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val isCaseClass: (Class[_]) => Boolean
Returns
true
if the given class type is considered a case class.Returns
true
if the given class type is considered a case class. True if:- is assignable from PRODUCT and
- not assignable from OPTION nor LIST and
- is not a Tuple and
- class symbol is case class.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def notCaseClass[T](clazz: Class[T]): Boolean
This is the negation of Types.isCaseClass Determine if a given class type is not a case class.
This is the negation of Types.isCaseClass Determine if a given class type is not a case class. Returns
true
if it is NOT considered a case class. - final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def runtimeClass[T](implicit tag: scala.reflect.api.JavaUniverse.TypeTag[T]): Class[T]
Return the runtime class from a given TypeTag.
Return the runtime class from a given TypeTag.
Usage
val clazz: Class[T] = Types.runtimeClass[T]
or pass in the implict TypeTag explicitly:
val tag: TypeTag[T] = ??? val clazz: Class[T] = Types.runtimeClass(tag)
- T
the TypeTag and expected class type of the returned class.
- returns
the runtime class of the given TypeTag.
- Note
the given TypeTag must be from the runtime universe otherwise an IllegalArgumentException will be thrown.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()