public abstract class TypeUtils
extends java.lang.Object
| Constructor and Description |
|---|
TypeUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isAssignable(java.lang.reflect.Type lhsType,
java.lang.reflect.Type rhsType)
Check if the right-hand side type may be assigned to the left-hand side
type following the Java generics rules.
|
static boolean |
isAssignableBound(java.lang.reflect.Type lhsType,
java.lang.reflect.Type rhsType) |
public static boolean isAssignable(java.lang.reflect.Type lhsType,
java.lang.reflect.Type rhsType)
lhsType - the target typerhsType - the value type that should be assigned to the target typepublic static boolean isAssignableBound(java.lang.reflect.Type lhsType,
java.lang.reflect.Type rhsType)