public static <T> boolean contains(@Nullable T[] array, T value) {
    return indexOf(array, value) != -1;
  }
Checks that value is present as at least one of the elements of the array.

@param array the array to check in
@param value the value to check for
@return true if the value is present in the array
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/util/ArrayUtils.java