Package com.jme3.anim.util
Class Primitives
java.lang.Object
com.jme3.anim.util.Primitives
This is a guava method used in
Tweens
class.
Maybe we should just add guava as a dependency in the engine...
//TODO do something about this.-
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
- Type Parameters:
T
- type- Parameters:
type
- the type to be boxed (not null)- Returns:
- the boxed type
-