Package org.loboevolution.common
Class ArrayUtilities
java.lang.Object
org.loboevolution.common.ArrayUtilities
ArrayUtilities class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> boolean
contains
(T[] ts, T t) contains.static boolean
isBlank
(Collection<?> collection) isBlank.static boolean
isNotBlank
(Collection<?> collection) isNotBlank.static <T> void
moveItem.static Color[]
removeColor
(Color[] arr, int index) removeColor.static float[]
removeFloat
(float[] arr, int index) removeFloat.
-
Constructor Details
-
ArrayUtilities
public ArrayUtilities()
-
-
Method Details
-
isBlank
isBlank.
- Parameters:
collection
- aCollection
object.- Returns:
- a boolean.
-
isNotBlank
isNotBlank.
- Parameters:
collection
- aCollection
object.- Returns:
- a boolean.
-
moveItem
moveItem.
-
removeColor
removeColor.
-
removeFloat
public static float[] removeFloat(float[] arr, int index) removeFloat.
-
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.
-