Package joptsimple.internal
Class Classes
java.lang.Object
joptsimple.internal.Classes
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
WRAPPERS
-
-
Constructor Details
-
Classes
private Classes()
-
-
Method Details
-
shortNameOf
Gives the "short version" of the given class name. Somewhat naive to inner classes.- Parameters:
className
- class name to chew on- Returns:
- the short name of the class
-
wrapperOf
Gives the primitive wrapper class for the given class. If the given class is not primitive, returns the class itself.- Type Parameters:
T
- generic class type- Parameters:
clazz
- the class to check- Returns:
- primitive wrapper type if
clazz
is primitive, otherwiseclazz
-