APIdia Launch Partner
Top Fields Constructors Methods
jdk.internal.joptsimple.internal

public final Class Classes

extends Object
Class Inheritance
Imports
java.util.HashMap, .Map

Author
Paul Holser

Field Summary

Modifier and TypeField and Description
private static final Map<Class<?>, Class<?>>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static String

Returns:

the short name of the class
shortNameOf
(String
class name to chew on
className
)

Gives the "short version" of the given class name.

public static <
generic class type
T
>
Class<T>

Returns:

primitive wrapper type if clazz is primitive, otherwise clazz
wrapperOf
(Class<T>
the class to check
clazz
)

Gives the primitive wrapper class for the given class.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

WRAPPERSback to summary
private static final Map<Class<?>, Class<?>> WRAPPERS

Constructor Detail

Classesback to summary
private Classes()

Method Detail

shortNameOfback to summary
public static String shortNameOf(String className)

Gives the "short version" of the given class name. Somewhat naive to inner classes.

Parameters
className:String

class name to chew on

Returns:String

the short name of the class

wrapperOfback to summary
public static <T> Class<T> wrapperOf(Class<T> clazz)

Gives the primitive wrapper class for the given class. If the given class is not primitive, returns the class itself.

Parameters
<T>
generic class type
clazz:Class<T>

the class to check

Returns:Class<T>

primitive wrapper type if clazz is primitive, otherwise clazz

Annotations
@SuppressWarnings:unchecked