android/guava/src/com/google/common/collect/ImmutableList.java
public static <E> ImmutableList<E> copyOf(E[] elements) {
    return (elements.length == 0)
        ? ImmutableList.<E>of()
        : ImmutableList.<E>construct(elements.clone());
  }
public static <E> ImmutableList<E> copyOf(E[] elements) {
    return (elements.length == 0)
        ? ImmutableList.<E>of()
        : ImmutableList.<E>construct(elements.clone());
  }
public static < E > ImmutableList < E > copyOf ( E [ ] elements ) { return ( elements . length == 0 ) ? ImmutableList . < E > of ( ) : ImmutableList . < E > construct ( elements . clone ( ) ) ; }
Returns an immutable list containing the given elements, in order.

@throws NullPointerException if any of {@code elements} is null
@since 3.0
Returns an immutable list containing the given elements in order .