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
()
| 73 | */ |
| 74 | |
| 75 | public static <E extends Comparable> TreeMultiset<E> create() { |
| 76 | return new TreeMultiset<E>(Ordering.natural()); |
| 77 | } |
| 78 | |
| 79 | /** |
| 80 | * Creates a new, empty multiset, sorted according to the specified comparator. All elements |