net.virtualvoid.string

TypeHelper

object TypeHelper extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TypeHelper
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. def genericInstanceType(cl: Type, Candidate: Class[_], tp: IndexedSeq[Type]): Option[Type]

    Search recursively through the type hierarchy of cl (superclasses and interfaces) to find the Candidate class.

    Search recursively through the type hierarchy of cl (superclasses and interfaces) to find the Candidate class. If found return the first type parameter's type value.

    In other words: Given a method with a generic result type, this function can be used to find out how a superclass or implemented interface is parameterized.

    For example, a method getList() returns a List[String]. We are not interested which type parameter List is applied to but which type parameter Iterable, which is a supertype of List, is applied to.

    tp is the list of type values applied to type cl. While traversing the type hierarchy, the type parameters have to be resolved in the context of the current class.

    Example: Candidate = Iterable cl tp ArrayList[String] [] => getGenericInterface ParameterizedType(List,Class String) [] => resolved:String List [String]=> getGenericInterface ParameterizedType(Collection,E) [String]=> resolved: TypeVariable(E,List) => String Collection [String]=> getGenericInterface ParameterizedType(Iterable,E) [String]=> resolved: TypeVariable(E,Collection) => String Iterable [String]=> String

  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  15. def main(args: Array[String]): Unit

  16. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  19. def nullSafe[T](x: T): Option[T]

  20. def supertype(cl: Class[_]): Option[Type]

  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  22. def toString(): String

    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  24. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  25. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any