public static < E extends Comparable > TreeMultiset < E > create ( Iterable < ? extends E > elements ) { TreeMultiset < E > multiset = create ( ) ; Iterables . addAll ( multiset , elements ) ; return multiset ; }
Creates an empty multiset containing the given initial elements sorted according to the elements natural order .