Creates a new, empty multiset, sorted according to the elements' natural order. All elements inserted into the multiset must implement the Comparable interface. Furthermore, all such elements must be mutually comparable : e1.compareTo(e2) must not throw a {@code ClassCastExcept
()
| 72 | * {@code <E extends Comparable<? super E>>}, to support classes defined without generics. |
| 73 | */ |
| 74 | public static <E extends Comparable> TreeMultiset<E> create() { |
| 75 | return new TreeMultiset<E>(Ordering.natural()); |
| 76 | } |
| 77 | |
| 78 | /** |
| 79 | * Creates a new, empty multiset, sorted according to the specified comparator. All elements |