Class ArrayUtil

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

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

    • contains

      public static boolean contains(@Nonnull Object[] array, @Nonnull Object search)
      Checks if the given search object is inside the given array.
      Parameters:
      array - the array to check.
      search - the Object to search for.
      Returns:
      true if the object is inside the array, otherwise false.