Class ArrayUtil

java.lang.Object
ca.uhn.hl7v2.util.ArrayUtil

public class ArrayUtil extends Object
Utility methods for working with arrays
  • Constructor Details

  • Method Details

    • contains

      public static <T> boolean contains(T[] theArray, T theValue)
      Returns true if the array contains the given value, using Object.equals(Object). Checks for a null value in the array if theValue is null.
      Parameters:
      theArray - the array to be checked
      theValue - value to be search for