public interface Type
BaseType,
ObjectType,
ArrayType,
VoidType| Modifier and Type | Method and Description |
|---|---|
default boolean |
isAssignableFrom(Type that,
InheritanceProvider inheritanceProvider)
Checks whether this type is assignable from the given
Type, using
data provided by the given InheritanceProvider. |
static Type |
of(Class<?> klass)
Gets the appropriate
Type for the given class. |
static Type |
of(String type)
Gets the appropriate
Type for the given type. |
static Type of(String type)
Type for the given type.type - The typestatic Type of(Class<?> klass)
Type for the given class.klass - The classdefault boolean isAssignableFrom(Type that, InheritanceProvider inheritanceProvider)
Type, using
data provided by the given InheritanceProvider.that - The type to check againstinheritanceProvider - The inheritance providertrue if this type is assignable from the given type;
false otherwise