public abstract class TypeUtils extends Object
Mainly for internal use within the framework.
Constructor and Description |
---|
TypeUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isAssignable(Type lhsType,
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(Type lhsType,
Type rhsType) |
public static boolean isAssignable(Type lhsType, Type rhsType)
lhsType
- the target typerhsType
- the value type that should be assigned to the target type