How can I generically tell if a Java Class is a primitive type?
Class.isPrimitive() will tell you the answer.
There is a method on the Class object called isPrimitive.
Class.isPrimitive() will tell you the answer.
There is a method on the Class object called isPrimitive.