Class ArrayUtil

java.lang.Object
xyz.dynxsty.dih4jda.util.ArrayUtil

public class ArrayUtil extends Object
Utility class that contains some useful methods regarding arrays.
Since:
v1.6
  • Method Details

    • contains

      public static boolean contains(@Nonnull Object[] array, @Nonnull Object search)
      Checks if the specified object is inside the specified array.
      Parameters:
      array - The array to check.
      search - The Object 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.