Package ca.uhn.hl7v2.util
Class ArrayUtil
java.lang.Object
ca.uhn.hl7v2.util.ArrayUtil
Utility methods for working with arrays
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> booleancontains(T[] theArray, T theValue) Returns true if the array contains the given value, usingObject.equals(Object).
-
Constructor Details
-
ArrayUtil
public ArrayUtil()
-
-
Method Details
-
contains
Returns true if the array contains the given value, usingObject.equals(Object). Checks for a null value in the array if theValue is null.- Parameters:
theArray- the array to be checkedtheValue- value to be search for
-