Package org.springframework.util
Class TypeUtils
- java.lang.Object
- org.springframework.util.TypeUtils
Constructor Summary
Constructors Constructor Description TypeUtils()
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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)
Constructor Detail
TypeUtils
public TypeUtils()
Method Detail
isAssignable
public 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.- Parameters:
lhsType
- the target typerhsType
- the value type that should be assigned to the target type- Returns:
- true if rhs is assignable to lhs
isAssignableBound
public static boolean isAssignableBound(Type lhsType, Type rhsType)