public interface ParameterizedTypeInfo extends TypeInfo
TypeInfo implementation representing ParameterizedTypeParameterizedTypeBIG_INT, BOOLEAN, BYTE, CHARACTER, DATE, DOUBLE, FLOAT, INT, LONG, NONE, NUMBER, OBJECT, OBJECT_ARRAY, PRIMITIVE_BOOLEAN, PRIMITIVE_BYTE, PRIMITIVE_CHARACTER, PRIMITIVE_DOUBLE, PRIMITIVE_FLOAT, PRIMITIVE_INT, PRIMITIVE_LONG, PRIMITIVE_SHORT, PRIMITIVE_VOID, RAW_CLASS, RAW_CONSUMER, RAW_ENUM_SET, RAW_FUNCTION, RAW_LIST, RAW_MAP, RAW_OPTIONAL, RAW_PREDICATE, RAW_SET, RAW_SUPPLIER, RUNNABLE, SHORT, STRING, STRING_ARRAY, VOID| Modifier and Type | Method and Description |
|---|---|
default int |
getTypeTag()
none of the base types is parameterized, unless this object is an implementation of
Scriptable with type variables, which is incredibly rare but still possible |
default boolean |
isAssignableFrom(TypeInfo another) |
default boolean |
isFunctionalInterface() |
default boolean |
isInstance(Object o) |
default boolean |
isInterface() |
default TypeInfo |
param(int index)
Example:
1. for
Map<String, Integer>, param(-1) == TypeInfo.NONE, param(0) == TypeInfo.STRING, param(1) == TypeInfo.INT, param(2) == TypeInfo.NONE
2. for Map (raw usage of generic class) or Integer (not generic class),
param(anyNumberHere) == TypeInfo.NONE |
List<TypeInfo> |
params() |
TypeInfo |
rawType() |
append, asClass, collectComponentClass, consolidate, createDefaultValue, enumConstants, getComponentType, is, isArray, isBoolean, isByte, isCharacter, isDouble, isEnum, isFloat, isInt, isLong, isNot, isNumber, isObjectExact, isPrimitive, isShort, isString, isVoid, newArray, shouldConvert, toStringTypeInfo rawType()
ParameterizedType.getRawType()default TypeInfo param(int index)
TypeInfo1. for Map<String, Integer>, param(-1) == TypeInfo.NONE, param(0) == TypeInfo.STRING, param(1) == TypeInfo.INT, param(2) == TypeInfo.NONE
2. for Map (raw usage of generic class) or Integer (not generic class),
param(anyNumberHere) == TypeInfo.NONE
param in interface TypeInfoTypeInfo.NONE if:
1. index not in valid range, or
2. the TypeInfo itself is not representing a ParameterizedType
params()default boolean isInterface()
isInterface in interface TypeInfoClass.isInterface()default boolean isFunctionalInterface()
isFunctionalInterface in interface TypeInfoFunctionalInterfacedefault boolean isAssignableFrom(TypeInfo another)
isAssignableFrom in interface TypeInfotrue if the caller TypeInfo represents the super class of the class
represented by another TypeInfoClass.isAssignableFrom(Class)default boolean isInstance(Object o)
isInstance in interface TypeInfoo is an instance of this class represented by the caller TypeInfoClass.isInstance(Object)default int getTypeTag()
Scriptable with type variables, which is incredibly rare but still possiblegetTypeTag in interface TypeInfoFunctionObject.getTypeTag(Class)Copyright © 2025 HtmlUnit. All rights reserved.