Class ArrayUtilities

java.lang.Object
org.loboevolution.common.ArrayUtilities

public class ArrayUtilities extends Object

ArrayUtilities class.

  • Constructor Details

    • ArrayUtilities

      public ArrayUtilities()
  • Method Details

    • isBlank

      public static boolean isBlank(Collection<?> collection)

      isBlank.

      Parameters:
      collection - a Collection object.
      Returns:
      a boolean.
    • isNotBlank

      public static boolean isNotBlank(Collection<?> collection)

      isNotBlank.

      Parameters:
      collection - a Collection object.
      Returns:
      a boolean.
    • moveItem

      public static <T> void moveItem(int sourceIndex, int targetIndex, List<T> list)

      moveItem.

      Type Parameters:
      T - a T object.
      Parameters:
      sourceIndex - a Integer object.
      targetIndex - a Integer object.
      list - a List object.
    • removeColor

      public static Color[] removeColor(Color[] arr, int index)

      removeColor.

      Parameters:
      arr - an array of Color objects.
      index - a Integer object
      Returns:
      an array of Color objects.
    • removeFloat

      public static float[] removeFloat(float[] arr, int index)

      removeFloat.

      Parameters:
      arr - an array of Float objects.
      index - a Integer object
      Returns:
      an array of Float objects.
    • contains

      public static <T> boolean contains(T[] ts, T t)

      contains.

      Type Parameters:
      T - a T object.
      Parameters:
      ts - an array of T[] objects.
      t - a T object.
      Returns:
      a boolean.