Class Primitives

java.lang.Object
com.jme3.anim.util.Primitives

public class Primitives extends Object
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 Details

    • wrap

      public static <T> Class<T> wrap(Class<T> type)
      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
       
      Type Parameters:
      T - type
      Parameters:
      type - the type to be boxed (not null)
      Returns:
      the boxed type