public final class EndPointTypeUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static Class<?> |
castAsClass(Type type)
Cast as Class;
|
static boolean |
isAssignableFrom(Class<?> parentClass,
Type testedType)
Equivalent to parentClass.isAssignableFrom(testedType);
|
static boolean |
isParameterizedBy(Class<?> innerClass,
Type testedType)
Check if testedType is ParameterizedType and it's parameter is assignable from innerClass;
|
public static boolean isAssignableFrom(Class<?> parentClass, Type testedType)
parentClass - Parent ClasstestedType - Type to test (must be a Class or ParameterizedType)public static boolean isParameterizedBy(Class<?> innerClass, Type testedType)
innerClass - Inner ClasstestedType - Type to test (must be a Class or ParameterizedType)Copyright © 2014. All Rights Reserved.