Package xyz.dynxsty.dih4jda.util
Class ArrayUtil
java.lang.Object
xyz.dynxsty.dih4jda.util.ArrayUtil
Utility class that contains some useful methods regarding arrays.
- Since:
- v1.6
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Checks if the specified object is inside the specified array.static byte[]
sortArrayFromDataArray
(net.dv8tion.jda.api.utils.data.DataArray dataArray) Checks if the specified object is inside the specified array.
-
Method Details
-
contains
Checks if the specified object is inside the specified array.- Parameters:
array
- The array to check.search
- TheObject
to search for.- Returns:
- Whether the object is contained inside the array.
- Since:
- v1.6
-
sortArrayFromDataArray
@Nonnull public static byte[] sortArrayFromDataArray(@Nonnull net.dv8tion.jda.api.utils.data.DataArray dataArray) Checks if the specified object is inside the specified array.- Parameters:
dataArray
- The array to check.- Returns:
- Whether the object is contained inside the array.
-