public static <E> ImmutableMultiset<E> copyOf(E[] elements) {
    return copyOf(Arrays.asList(elements));
  }
public static < E > ImmutableMultiset < E > copyOf ( E [ ] elements ) { return copyOf ( Arrays . asList ( elements ) ) ; }
Returns an immutable multiset containing the given elements.

<p>The multiset is ordered by the first occurrence of each element. For
example, {@code ImmutableMultiset.copyOf([2, 3, 1, 3])} yields a multiset
with elements in the order {@code 2, 3, 3, 1}.

@throws NullPointerException if any of {@code elements} is null
@since 6.0