Class GArrays

java.lang.Object
com.glitchybyte.glib.GArrays

public final class GArrays extends Object
Array utilities.
  • Method Details

    • forEach

      public static <T> void forEach(T[] array, Consumer<T> consumer)
      Iterates over the array and passes each element to the given consumer.
      Type Parameters:
      T - Type of array elements.
      Parameters:
      array - Array to iterate over.
      consumer - Element consumer.