public class TypeChecker extends Object
Constructor and Description |
---|
TypeChecker() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isTypeSafe(Type requiredType,
Type beanType)
Returns true if the given requiredType is safely assignable
from the given beanType.
|
public static boolean isTypeSafe(Type requiredType, Type beanType)
requiredType = beanType
without any castrequiredType
- The type being assigned intobeanType
- the type being assignedCopyright © 2018 Oracle Corporation. All rights reserved.