public class BoxedTypeUtil extends Object
| Constructor and Description |
|---|
BoxedTypeUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Class<?> |
box(Class<?> clz)
boxing if clz is primitive
|
static boolean |
isAssignable(Class<?> dad,
Class<?> son)
boxed and check dad.isAssignableFrom(son)
|
static boolean |
isInstance(Class<?> dad,
Object son)
boxed and check dad.isInstance(son)
|
public static Class<?> box(Class<?> clz)
clz - classpublic static boolean isAssignable(Class<?> dad, Class<?> son)
dad - supper classson - itself or subclassCopyright © 2023. All rights reserved.