Package discord4j.core.util
Class ArrayUtil
java.lang.Object
discord4j.core.util.ArrayUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic long[]
add
(long[] array, long l) static <T> T[]
add
(T[] array, T t) static long[]
addAll
(long[] array0, long[] array1) static boolean
contains
(long[] array, long l) static long[]
remove
(long[] array, long l) static <T> T[]
remove
(T[] array, T t) static <T> T[]
replace
(T[] array, T old, T replacement) static Long[]
toObject
(long[] array)
-
Constructor Details
-
ArrayUtil
public ArrayUtil()
-
-
Method Details
-
remove
public static <T> T[] remove(T[] array, T t) -
remove
public static long[] remove(long[] array, long l) -
add
public static <T> T[] add(T[] array, T t) -
add
public static long[] add(long[] array, long l) -
addAll
public static long[] addAll(long[] array0, long[] array1) -
toObject
-
replace
public static <T> T[] replace(T[] array, T old, T replacement) -
contains
public static boolean contains(long[] array, long l)
-