Skip to content

Package io.github.qishr.cascara.common.lang.type

Class TypeReference

java.lang.Object
        io.github.qishr.cascara.common.lang.type.TypeReference


public class TypeReference

References a generic type.

Constructor Summary

Constructor Description
TypeReference()

Method Summary

Modifier and Type Method Description
public T newInstance() Instantiates a new instance of T using the default, no-arg constructor.
public Type getType() Gets the referenced type.

Method Details

newInstance

public T newInstance()

Instantiates a new instance of T using the default, no-arg constructor.

Throws:

NoSuchMethodException , IllegalAccessException , InvocationTargetException , InstantiationException


getType

public Type getType()

Gets the referenced type.