joptsimple.internal
Class Classes

java.lang.Object
  extended by joptsimple.internal.Classes

public final class Classes
extends Object

Author:
Paul Holser

Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

shortNameOf

public static String shortNameOf(String className)
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

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.

Type Parameters:
T - generic class type
Parameters:
clazz - the class to check
Returns:
primitive wrapper type if clazz is primitive, otherwise clazz


Copyright © 2014. All Rights Reserved.