Package net.minestom.server.utils
Class ArrayUtils
java.lang.Object
net.minestom.server.utils.ArrayUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic int[]concatenateIntArrays(int[] @NotNull ... arrays) static booleanstatic <T> int[]mapToIntArray(Collection<T> collection, ToIntFunction<T> function) static long[]pack(int[] ints, int bitsPerEntry) static <K,V> Map <K, V> toMap(K[] keys, V[] values, int length) static voidunpack(int[] out, long[] in, int bitsPerEntry)
-
Method Details
-
isEmpty
-
concatenateIntArrays
public static int[] concatenateIntArrays(int[] @NotNull ... arrays) -
mapToIntArray
-
toMap
-
pack
public static long[] pack(int[] ints, int bitsPerEntry) -
unpack
public static void unpack(int[] out, long[] in, int bitsPerEntry)
-