|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.tomgibara.pronto.util.Classes
public final class Classes
Collects together utility methods for handling class objects.
| Method Summary | |
|---|---|
static java.lang.Class |
classForPrimitive(java.lang.Class clss)
Identifies the object class which corresponds to a specified primitive class, or throws an exception. |
static boolean |
isBooleanPrimitive(java.lang.Class clss)
Whether the supplied class represents the boolean primitive. |
static boolean |
isNonVoidPrimitive(java.lang.Class clss)
Whether the class is strictly primitive - not including the Void.TYPE. |
static boolean |
isNumberPrimitive(java.lang.Class clss)
Whether the supplied class represents a number primitive. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.Class classForPrimitive(java.lang.Class clss)
throws java.lang.IllegalArgumentException
clss - the class
java.lang.IllegalArgumentException - if the supplied class is null or does not represent a
primitive typepublic static boolean isNonVoidPrimitive(java.lang.Class clss)
clss - the class
public static boolean isNumberPrimitive(java.lang.Class clss)
clss - the class
public static boolean isBooleanPrimitive(java.lang.Class clss)
clss - the class
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||