Class ArrayCastUtils

java.lang.Object
org.polyfrost.oneconfig.utils.v1.ArrayCastUtils

public final class ArrayCastUtils extends Object
Utility class for casting between primitive array types.
  • Method Details

    • unboxNumberArray

      public static Object unboxNumberArray(Object[] array, Class<?> type)
    • i2i

      public static int[] i2i(Object[] arr)
    • s2i

      public static int[] s2i(short[] arr)
    • l2i

      public static int[] l2i(long[] arr)
    • b2i

      public static int[] b2i(byte[] arr)
    • c2i

      public static int[] c2i(char[] arr)
    • f2f

      public static float[] f2f(Object[] arr)
    • d2f

      public static float[] d2f(double[] arr)
    • d2d

      public static double[] d2d(Object[] arr)
    • f2d

      public static double[] f2d(float[] arr)
    • l2l

      public static long[] l2l(Object[] arr)
    • s2s

      public static short[] s2s(Object[] arr)
    • b2b

      public static byte[] b2b(Object[] arr)
    • c2c

      public static char[] c2c(Object[] arr)
    • i2l

      public static long[] i2l(int[] arr)
    • s2l

      public static long[] s2l(short[] arr)
    • b2l

      public static long[] b2l(byte[] arr)
    • c2l

      public static long[] c2l(char[] arr)