public final class ClassHelper extends Object
Modifier and Type | Method and Description |
---|---|
static Method |
getMethod(Class type,
String name,
Object[] args)
Helper to return a method given its name and a list of arguments
|
static String |
getPrimitiveName(Class wrapper)
Helper to return the primitive type name associated with an object wrapper type
|
static Class |
getPrimitiveType(Class wrapper)
Helper to return the primitive type associated with an object wrapper type
|
public static Method getMethod(Class type, String name, Object[] args) throws NoSuchMethodException
type
- the class to locate the method onname
- the method nameargs
- the list of arguments to match against, or null if the method takes no argumentsNoSuchMethodException
- if the method cannot be foundpublic static Class getPrimitiveType(Class wrapper)
wrapper
- the object wrapper classpublic static String getPrimitiveName(Class wrapper)
wrapper
- the object wrapper classCopyright © GigaSpaces.