Class Primitives
java.lang.Object
org.glassfish.jersey.internal.guava.Primitives
Contains static utility methods pertaining to primitive types and their
corresponding wrapper types.
- Since:
- 1.0
- Author:
- Kevin Bourrillion
-
Method Summary
-
Method Details
-
wrap
Returns the corresponding wrapper type oftype
if it is a primitive type; otherwise returnstype
itself. Idempotent.wrap(int.class) == Integer.class wrap(Integer.class) == Integer.class wrap(String.class) == String.class
-