public final class Classes extends Object
Modifier and Type | Method and Description |
---|---|
static String |
shortNameOf(String className)
Gives the "short version" of the given class name.
|
static <T> Class<T> |
wrapperOf(Class<T> clazz)
Gives the primitive wrapper class for the given class.
|
public static String shortNameOf(String className)
className
- class name to chew onpublic static <T> Class<T> wrapperOf(Class<T> clazz)
T
- generic class typeclazz
- the class to checkclazz
is primitive, otherwise clazz
Copyright © 2016. All Rights Reserved.