android/guava/src/com/google/common/collect/LinkedHashMultiset.java
public static <E> LinkedHashMultiset<E> create(Iterable<? extends E> elements) {
    LinkedHashMultiset<E> multiset = create(Multisets.inferDistinctElements(elements));
    Iterables.addAll(multiset, elements);
    return multiset;
  }
public static <E> LinkedHashMultiset<E> create(Iterable<? extends E> elements) {
    LinkedHashMultiset<E> multiset = create(Multisets.inferDistinctElements(elements));
    Iterables.addAll(multiset, elements);
    return multiset;
  }
public static < E > LinkedHashMultiset < E > create ( Iterable < ? extends E > elements ) { LinkedHashMultiset < E > multiset = create ( Multisets . inferDistinctElements ( elements ) ) ; Iterables . addAll ( multiset , elements ) ; return multiset ; }
Creates a new {@code LinkedHashMultiset} containing the specified elements.

<p>This implementation is highly efficient when {@code elements} is itself a {@link Multiset}.

@param elements the elements that the multiset should contain
Creates a new { @code LinkedHashMultiset } containing the specified elements .