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[] 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)