public class Primitives
extends java.lang.Object
Tweens
class.
Maybe we should just add guava as a dependency in the engine...
//TODO do something about this.Modifier and Type | Method and Description |
---|---|
static <T> java.lang.Class<T> |
wrap(java.lang.Class<T> type)
Returns the corresponding wrapper type of
type if it is a primitive type; otherwise
returns type itself. |
public static <T> java.lang.Class<T> wrap(java.lang.Class<T> type)
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
T
- typetype
- the type to be boxed (not null)