public class TypeChecker extends Object
| Constructor and Description |
|---|
TypeChecker() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isRawTypeSafe(Type requiredType,
Type beanType)
Returns true if the given requiredType is safely assignable
from the given beanType.
|
public static boolean isRawTypeSafe(Type requiredType, Type beanType)
requiredType = beanType
without any cast. It should be noted that this
checker is using the CDI rules (as stated in CDI version 1.1
in sectionrequiredType - The type being assigned intobeanType - the type being assignedCopyright © 2009-2017 Oracle Corporation. All Rights Reserved.