@SuppressWarnings("unchecked") // caller is reponsible for getting this right
  static <E> ImmutableList<E> asImmutableList(Object[] elements) {
    return unsafeDelegateList((List) Arrays.asList(elements));
  }
@SuppressWarnings("unchecked") 
  static <E> ImmutableList<E> asImmutableList(Object[] elements) {
    return unsafeDelegateList((List) Arrays.asList(elements));
  }
@ SuppressWarnings ( "unchecked" ) // caller is reponsible for getting this right static < E > ImmutableList < E > asImmutableList ( Object [ ] elements ) { return unsafeDelegateList ( ( List ) Arrays . asList ( elements ) ) ; }
Views the array as an immutable list. The array must have only {@code E} elements.

<p>The array must be internally created.
Views the array as an immutable list . The array must have only { @code E } elements .