Class Array
java.lang.Object
pretty.utils.Array
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> boolean
exists
(T[] array, T value) Check if a value exists in an array
-
Constructor Details
-
Array
public Array()
-
-
Method Details
-
exists
public static <T> boolean exists(T[] array, T value) Check if a value exists in an array- Type Parameters:
T
- T - type of array- Parameters:
array
- - array to checkvalue
- - value to check- Returns:
- true if value exists in array, false otherwise
-