public static <K> IdentityArrayList<K> wrap(final K[] a) {
    return wrap(a, a.length);
  }
Wraps a given array into an array list.

@param a an array to wrap.
@return a new array list wrapping the given array.
geode-core/src/main/java/org/apache/geode/internal/cache/IdentityArrayList.java