Package org.midheaven.lang.reflection
Class TypeReference
java.lang.Object
org.midheaven.lang.reflection.TypeReference
- Direct Known Subclasses:
ParametricTypeReference
public abstract sealed class TypeReference
extends Object
permits ParametricTypeReference<T> (not exhaustive)
Represents Type Reference.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T,C extends Collection<T>>
ParametricTypeReference<C> collection(Class<? extends C> collectionType, Class<T> elementType) final booleanfinal inthashCode()abstract booleanisAssignableTo(Class<?> other) booleanisAssignableTo(TypeReference other) abstract booleanisInstance(Object instance) abstract booleanfinal TypeKindkind()static <K,V, M extends Map<K, V>>
ParametricTypeReference<M> static <X> ParametricTypeReference<X> static TypeReferenceabstract Sequence<TypeReference> abstract Class<?> abstract StringtoString()
-
Constructor Details
-
TypeReference
public TypeReference()
-
-
Method Details
-
of
-
map
public static <K,V, ParametricTypeReference<M> mapM extends Map<K, V>> (Class<? extends M> mapType, Class<K> keyType, Class<V> valueType) -
collection
public static <T,C extends Collection<T>> ParametricTypeReference<C> collection(Class<? extends C> collectionType, Class<T> elementType) -
of
-
kind
-
isPrimitive
public abstract boolean isPrimitive() -
rootClass
-
parameterTypes
-
isAssignableTo
-
isAssignableTo
-
isInstance
-
toString
-
equals
-
hashCode
public final int hashCode()
-