Returns true
if type
is one of the nine
primitive-wrapper types, such as Integer
.
Returns true
if type
is one of the nine
primitive-wrapper types, such as Integer
.
Class#isPrimitive
Returns the corresponding primitive type of type
if it is a
wrapper type; otherwise returns type
itself.
Returns the corresponding primitive type of type
if it is a
wrapper type; otherwise returns type
itself. Idempotent.
unwrap(Integer.class) == int.class unwrap(int.class) == int.class unwrap(String.class) == String.class
Returns the corresponding wrapper type of type
if it is a primitive
type; otherwise returns type
itself.
Returns the corresponding wrapper type of type
if it is a primitive
type; otherwise returns type
itself. Idempotent.
wrap(int.class) == Integer.class wrap(Integer.class) == Integer.class wrap(String.class) == String.class
Wrap or Unwrap primitive
3.2.0