Class CapsuleUtils

java.lang.Object
com.ardor3d.util.export.CapsuleUtils

public final class CapsuleUtils extends Object
  • Method Details

    • asSavableArray

      public static Savable[] asSavableArray(Object[] values)
      Convert an object array to a Savable array for easier use during export.
      Parameters:
      values - our object array, should be of a class type that implements Savable.
      Returns:
      the array as Savable.
    • asArray

      public static <T> T[] asArray(Savable[] array, Class<T> clazz)
      Converts from a Savable array to a particular class type for import operations.
      Type Parameters:
      T - The class type to convert to.
      Parameters:
      array - our Savable array to convert.
      clazz - the class type value.
      Returns:
      the array of the passed type