Package | Description |
---|---|
org.javaruntype.type |
Modifier and Type | Method and Description |
---|---|
static <T> Type<T> |
Types.arrayComponentOf(Type<T[]> type) |
static <T> Type<T[]> |
Types.arrayOf(Type<T> type) |
static <T> Type<T> |
Types.classComponentOf(Type<Class<T>> type) |
static <T> Type<Class<? extends T>> |
Types.classOf(ExtendsTypeParameter<T> typeParameter) |
static <T> Type<Class<T>> |
Types.classOf(StandardTypeParameter<T> typeParameter) |
static <T> Type<Class<? super T>> |
Types.classOf(SuperTypeParameter<T> typeParameter) |
static <T> Type<Class<T>> |
Types.classOf(Type<T> type) |
static <T> Type<Class<?>> |
Types.classOf(WildcardTypeParameter typeParameter) |
static <T> Type<T> |
Types.collectionComponentOf(Type<Collection<T>> type) |
static <T> Type<Collection<? extends T>> |
Types.collectionOf(ExtendsTypeParameter<T> typeParameter) |
static <T> Type<Collection<T>> |
Types.collectionOf(StandardTypeParameter<T> typeParameter) |
static <T> Type<Collection<? super T>> |
Types.collectionOf(SuperTypeParameter<T> typeParameter) |
static <T> Type<Collection<T>> |
Types.collectionOf(Type<T> type) |
static <T> Type<Collection<?>> |
Types.collectionOf(WildcardTypeParameter typeParameter) |
static <T> Type<T> |
Types.comparatorComponentOf(Type<Comparator<T>> type) |
static <T> Type<Comparator<? extends T>> |
Types.comparatorOf(ExtendsTypeParameter<T> typeParameter) |
static <T> Type<Comparator<T>> |
Types.comparatorOf(StandardTypeParameter<T> typeParameter) |
static <T> Type<Comparator<? super T>> |
Types.comparatorOf(SuperTypeParameter<T> typeParameter) |
static <T> Type<Comparator<T>> |
Types.comparatorOf(Type<T> type) |
static <T> Type<Comparator<?>> |
Types.comparatorOf(WildcardTypeParameter typeParameter) |
static <T> Type<T> |
Types.enumerationComponentOf(Type<Enumeration<T>> type) |
static <T> Type<Enumeration<? extends T>> |
Types.enumerationOf(ExtendsTypeParameter<T> typeParameter) |
static <T> Type<Enumeration<T>> |
Types.enumerationOf(StandardTypeParameter<T> typeParameter) |
static <T> Type<Enumeration<? super T>> |
Types.enumerationOf(SuperTypeParameter<T> typeParameter) |
static <T> Type<Enumeration<T>> |
Types.enumerationOf(Type<T> type) |
static <T> Type<Enumeration<?>> |
Types.enumerationOf(WildcardTypeParameter typeParameter) |
static <T> Type<T> |
Types.forClass(Class<? super T> componentClass,
TypeParameter<?>... typeParameters) |
static <T> Type<T> |
Types.forClass(Class<T> typeClass) |
static Type<?> |
Types.forJavaLangReflectType(Type javaLangReflectType) |
static Type<?> |
Types.forJavaLangReflectType(Type javaLangReflectType,
Map<String,Type<?>> variableSubstitutions) |
static Type<?> |
Types.forName(String typeName) |
Type<?> |
Type.getRawEquivalent()
Returns a type corresponding with the one on which this method is called, but substituting all its
type parameters by "unknown".
|
static Type<?> |
Types.getRawEquivalent(Type<?> type) |
Type<Object> |
WildcardTypeParameter.getType() |
abstract Type<T> |
TypeParameter.getType()
Returns the type contained in the parameter.
|
Type<T> |
StandardTypeParameter.getType() |
Type<T> |
SuperTypeParameter.getType() |
Type<T> |
ExtendsTypeParameter.getType() |
static <T> Type<T> |
Types.iterableComponentOf(Type<Iterable<T>> type) |
static <T> Type<Iterable<? extends T>> |
Types.iterableOf(ExtendsTypeParameter<T> typeParameter) |
static <T> Type<Iterable<T>> |
Types.iterableOf(StandardTypeParameter<T> typeParameter) |
static <T> Type<Iterable<? super T>> |
Types.iterableOf(SuperTypeParameter<T> typeParameter) |
static <T> Type<Iterable<T>> |
Types.iterableOf(Type<T> type) |
static <T> Type<Iterable<?>> |
Types.iterableOf(WildcardTypeParameter typeParameter) |
static <T> Type<T> |
Types.iteratorComponentOf(Type<Iterator<T>> type) |
static <T> Type<Iterator<? extends T>> |
Types.iteratorOf(ExtendsTypeParameter<T> typeParameter) |
static <T> Type<Iterator<T>> |
Types.iteratorOf(StandardTypeParameter<T> typeParameter) |
static <T> Type<Iterator<? super T>> |
Types.iteratorOf(SuperTypeParameter<T> typeParameter) |
static <T> Type<Iterator<T>> |
Types.iteratorOf(Type<T> type) |
static <T> Type<Iterator<?>> |
Types.iteratorOf(WildcardTypeParameter typeParameter) |
static <T> Type<T> |
Types.listComponentOf(Type<List<T>> type) |
static <T> Type<T> |
Types.listIteratorComponentOf(Type<ListIterator<T>> type) |
static <T> Type<ListIterator<? extends T>> |
Types.listIteratorOf(ExtendsTypeParameter<T> typeParameter) |
static <T> Type<ListIterator<T>> |
Types.listIteratorOf(StandardTypeParameter<T> typeParameter) |
static <T> Type<ListIterator<? super T>> |
Types.listIteratorOf(SuperTypeParameter<T> typeParameter) |
static <T> Type<ListIterator<T>> |
Types.listIteratorOf(Type<T> type) |
static <T> Type<ListIterator<?>> |
Types.listIteratorOf(WildcardTypeParameter typeParameter) |
static <T> Type<List<? extends T>> |
Types.listOf(ExtendsTypeParameter<T> typeParameter) |
static <T> Type<List<T>> |
Types.listOf(StandardTypeParameter<T> typeParameter) |
static <T> Type<List<? super T>> |
Types.listOf(SuperTypeParameter<T> typeParameter) |
static <T> Type<List<T>> |
Types.listOf(Type<T> type) |
static <T> Type<List<?>> |
Types.listOf(WildcardTypeParameter typeParameter) |
static <K,V> Type<K> |
Types.mapEntryKeyComponentOf(Type<Map.Entry<K,V>> type) |
static <K,V> Type<Map.Entry<? extends K,? extends V>> |
Types.mapEntryOf(ExtendsTypeParameter<K> keyTypeParameter,
ExtendsTypeParameter<V> valueTypeParameter) |
static <K,V> Type<Map.Entry<? extends K,V>> |
Types.mapEntryOf(ExtendsTypeParameter<K> keyTypeParameter,
StandardTypeParameter<V> valueTypeParameter) |
static <K,V> Type<Map.Entry<? extends K,? super V>> |
Types.mapEntryOf(ExtendsTypeParameter<K> keyTypeParameter,
SuperTypeParameter<V> valueTypeParameter) |
static <K,V> Type<Map.Entry<? extends K,?>> |
Types.mapEntryOf(ExtendsTypeParameter<K> keyTypeParameter,
WildcardTypeParameter valueTypeParameter) |
static <K,V> Type<Map.Entry<K,? extends V>> |
Types.mapEntryOf(StandardTypeParameter<K> keyTypeParameter,
ExtendsTypeParameter<V> valueTypeParameter) |
static <K,V> Type<Map.Entry<K,V>> |
Types.mapEntryOf(StandardTypeParameter<K> keyTypeParameter,
StandardTypeParameter<V> valueTypeParameter) |
static <K,V> Type<Map.Entry<K,? super V>> |
Types.mapEntryOf(StandardTypeParameter<K> keyTypeParameter,
SuperTypeParameter<V> valueTypeParameter) |
static <K,V> Type<Map.Entry<K,?>> |
Types.mapEntryOf(StandardTypeParameter<K> keyTypeParameter,
WildcardTypeParameter valueTypeParameter) |
static <K,V> Type<Map.Entry<? super K,? extends V>> |
Types.mapEntryOf(SuperTypeParameter<K> keyTypeParameter,
ExtendsTypeParameter<V> valueTypeParameter) |
static <K,V> Type<Map.Entry<? super K,V>> |
Types.mapEntryOf(SuperTypeParameter<K> keyTypeParameter,
StandardTypeParameter<V> valueTypeParameter) |
static <K,V> Type<Map.Entry<? super K,? super V>> |
Types.mapEntryOf(SuperTypeParameter<K> keyTypeParameter,
SuperTypeParameter<V> valueTypeParameter) |
static <K,V> Type<Map.Entry<? super K,?>> |
Types.mapEntryOf(SuperTypeParameter<K> keyTypeParameter,
WildcardTypeParameter valueTypeParameter) |
static <K,V> Type<Map.Entry<K,V>> |
Types.mapEntryOf(Type<K> keyType,
Type<V> valueType) |
static <K,V> Type<Map.Entry<?,? extends V>> |
Types.mapEntryOf(WildcardTypeParameter keyTypeParameter,
ExtendsTypeParameter<V> valueTypeParameter) |
static <K,V> Type<Map.Entry<?,V>> |
Types.mapEntryOf(WildcardTypeParameter keyTypeParameter,
StandardTypeParameter<V> valueTypeParameter) |
static <K,V> Type<Map.Entry<?,? super V>> |
Types.mapEntryOf(WildcardTypeParameter keyTypeParameter,
SuperTypeParameter<V> valueTypeParameter) |
static <K,V> Type<Map.Entry<?,?>> |
Types.mapEntryOf(WildcardTypeParameter keyTypeParameter,
WildcardTypeParameter valueTypeParameter) |
static <K,V> Type<V> |
Types.mapEntryValueComponentOf(Type<Map.Entry<K,V>> type) |
static <K,V> Type<K> |
Types.mapKeyComponentOf(Type<Map<K,V>> type) |
static <K,V> Type<Map<? extends K,? extends V>> |
Types.mapOf(ExtendsTypeParameter<K> keyTypeParameter,
ExtendsTypeParameter<V> valueTypeParameter) |
static <K,V> Type<Map<? extends K,V>> |
Types.mapOf(ExtendsTypeParameter<K> keyTypeParameter,
StandardTypeParameter<V> valueTypeParameter) |
static <K,V> Type<Map<? extends K,? super V>> |
Types.mapOf(ExtendsTypeParameter<K> keyTypeParameter,
SuperTypeParameter<V> valueTypeParameter) |
static <K,V> Type<Map<? extends K,?>> |
Types.mapOf(ExtendsTypeParameter<K> keyTypeParameter,
WildcardTypeParameter valueTypeParameter) |
static <K,V> Type<Map<K,? extends V>> |
Types.mapOf(StandardTypeParameter<K> keyTypeParameter,
ExtendsTypeParameter<V> valueTypeParameter) |
static <K,V> Type<Map<K,V>> |
Types.mapOf(StandardTypeParameter<K> keyTypeParameter,
StandardTypeParameter<V> valueTypeParameter) |
static <K,V> Type<Map<K,? super V>> |
Types.mapOf(StandardTypeParameter<K> keyTypeParameter,
SuperTypeParameter<V> valueTypeParameter) |
static <K,V> Type<Map<K,?>> |
Types.mapOf(StandardTypeParameter<K> keyTypeParameter,
WildcardTypeParameter valueTypeParameter) |
static <K,V> Type<Map<? super K,? extends V>> |
Types.mapOf(SuperTypeParameter<K> keyTypeParameter,
ExtendsTypeParameter<V> valueTypeParameter) |
static <K,V> Type<Map<? super K,V>> |
Types.mapOf(SuperTypeParameter<K> keyTypeParameter,
StandardTypeParameter<V> valueTypeParameter) |
static <K,V> Type<Map<? super K,? super V>> |
Types.mapOf(SuperTypeParameter<K> keyTypeParameter,
SuperTypeParameter<V> valueTypeParameter) |
static <K,V> Type<Map<? super K,?>> |
Types.mapOf(SuperTypeParameter<K> keyTypeParameter,
WildcardTypeParameter valueTypeParameter) |
static <K,V> Type<Map<K,V>> |
Types.mapOf(Type<K> keyType,
Type<V> valueType) |
static <K,V> Type<Map<?,? extends V>> |
Types.mapOf(WildcardTypeParameter keyTypeParameter,
ExtendsTypeParameter<V> valueTypeParameter) |
static <K,V> Type<Map<?,V>> |
Types.mapOf(WildcardTypeParameter keyTypeParameter,
StandardTypeParameter<V> valueTypeParameter) |
static <K,V> Type<Map<?,? super V>> |
Types.mapOf(WildcardTypeParameter keyTypeParameter,
SuperTypeParameter<V> valueTypeParameter) |
static <K,V> Type<Map<?,?>> |
Types.mapOf(WildcardTypeParameter keyTypeParameter,
WildcardTypeParameter valueTypeParameter) |
static <K,V> Type<V> |
Types.mapValueComponentOf(Type<Map<K,V>> type) |
static <T> Type<T> |
Types.queueComponentOf(Type<Queue<T>> type) |
static <T> Type<Queue<? extends T>> |
Types.queueOf(ExtendsTypeParameter<T> typeParameter) |
static <T> Type<Queue<T>> |
Types.queueOf(StandardTypeParameter<T> typeParameter) |
static <T> Type<Queue<? super T>> |
Types.queueOf(SuperTypeParameter<T> typeParameter) |
static <T> Type<Queue<T>> |
Types.queueOf(Type<T> type) |
static <T> Type<Queue<?>> |
Types.queueOf(WildcardTypeParameter typeParameter) |
static <T> Type<T> |
Types.setComponentOf(Type<Set<T>> type) |
static <T> Type<Set<? extends T>> |
Types.setOf(ExtendsTypeParameter<T> typeParameter) |
static <T> Type<Set<T>> |
Types.setOf(StandardTypeParameter<T> typeParameter) |
static <T> Type<Set<? super T>> |
Types.setOf(SuperTypeParameter<T> typeParameter) |
static <T> Type<Set<T>> |
Types.setOf(Type<T> type) |
static <T> Type<Set<?>> |
Types.setOf(WildcardTypeParameter typeParameter) |
Modifier and Type | Method and Description |
---|---|
static Set<Type<?>> |
Types.getAllTypesAssignableFrom(Type<?> type) |
Set<Type<?>> |
Type.getAllTypesAssignableFromThis()
Returns a set of the types corresponding to all the interfaces and
superclasses that this type implements or extends.
|
Modifier and Type | Method and Description |
---|---|
static <T> Type<T> |
Types.arrayComponentOf(Type<T[]> type) |
static <T> Type<T[]> |
Types.arrayOf(Type<T> type) |
static <T> Type<T> |
Types.classComponentOf(Type<Class<T>> type) |
static <T> Type<Class<T>> |
Types.classOf(Type<T> type) |
static <T> Type<T> |
Types.collectionComponentOf(Type<Collection<T>> type) |
static <T> Type<Collection<T>> |
Types.collectionOf(Type<T> type) |
static <T> Type<T> |
Types.comparatorComponentOf(Type<Comparator<T>> type) |
static <T> Type<Comparator<T>> |
Types.comparatorOf(Type<T> type) |
static <T> Type<T> |
Types.enumerationComponentOf(Type<Enumeration<T>> type) |
static <T> Type<Enumeration<T>> |
Types.enumerationOf(Type<T> type) |
static <T> ExtendsTypeParameter<T> |
TypeParameters.forExtendsType(Type<T> type) |
static <T> SuperTypeParameter<T> |
TypeParameters.forSuperType(Type<T> type) |
static <T> StandardTypeParameter<T> |
TypeParameters.forType(Type<T> type) |
static Set<Type<?>> |
Types.getAllTypesAssignableFrom(Type<?> type) |
static Type<?> |
Types.getRawEquivalent(Type<?> type) |
boolean |
Type.isAssignableFrom(Type<?> type)
Returns whether type type is assignable from the type that is passed
as a parameter.
|
static boolean |
Types.isAssignableFrom(Type<?> type,
Type<?> fromType) |
static boolean |
Types.isAssignableFrom(Type<?> type,
Type<?> fromType) |
static <T> Type<T> |
Types.iterableComponentOf(Type<Iterable<T>> type) |
static <T> Type<Iterable<T>> |
Types.iterableOf(Type<T> type) |
static <T> Type<T> |
Types.iteratorComponentOf(Type<Iterator<T>> type) |
static <T> Type<Iterator<T>> |
Types.iteratorOf(Type<T> type) |
static <T> Type<T> |
Types.listComponentOf(Type<List<T>> type) |
static <T> Type<T> |
Types.listIteratorComponentOf(Type<ListIterator<T>> type) |
static <T> Type<ListIterator<T>> |
Types.listIteratorOf(Type<T> type) |
static <T> Type<List<T>> |
Types.listOf(Type<T> type) |
static <K,V> Type<K> |
Types.mapEntryKeyComponentOf(Type<Map.Entry<K,V>> type) |
static <K,V> Type<Map.Entry<K,V>> |
Types.mapEntryOf(Type<K> keyType,
Type<V> valueType) |
static <K,V> Type<Map.Entry<K,V>> |
Types.mapEntryOf(Type<K> keyType,
Type<V> valueType) |
static <K,V> Type<V> |
Types.mapEntryValueComponentOf(Type<Map.Entry<K,V>> type) |
static <K,V> Type<K> |
Types.mapKeyComponentOf(Type<Map<K,V>> type) |
static <K,V> Type<Map<K,V>> |
Types.mapOf(Type<K> keyType,
Type<V> valueType) |
static <K,V> Type<Map<K,V>> |
Types.mapOf(Type<K> keyType,
Type<V> valueType) |
static <K,V> Type<V> |
Types.mapValueComponentOf(Type<Map<K,V>> type) |
static <T> Type<T> |
Types.queueComponentOf(Type<Queue<T>> type) |
static <T> Type<Queue<T>> |
Types.queueOf(Type<T> type) |
static <T> Type<T> |
Types.setComponentOf(Type<Set<T>> type) |
static <T> Type<Set<T>> |
Types.setOf(Type<T> type) |
Modifier and Type | Method and Description |
---|---|
static Type<?> |
Types.forJavaLangReflectType(Type javaLangReflectType,
Map<String,Type<?>> variableSubstitutions) |
Copyright © 2016 The JAVARUNTYPE team. All Rights Reserved.