Class ArrayUtils

java.lang.Object
net.minestom.server.utils.ArrayUtils

@Internal public final class ArrayUtils extends Object
  • Method Details

    • isEmpty

      public static boolean isEmpty(@Nullable @Nullable Object @NotNull [] array)
    • concatenateIntArrays

      public static int[] concatenateIntArrays(int[] @NotNull ... arrays)
    • mapToIntArray

      public static <T> int[] mapToIntArray(Collection<T> collection, ToIntFunction<T> function)
    • toMap

      public static <K, V> Map<K,V> toMap(@NotNull K[] keys, @NotNull V[] values, int length)
    • pack

      public static long[] pack(int[] ints, int bitsPerEntry)
    • unpack

      public static void unpack(int[] out, long[] in, int bitsPerEntry)