Multiset implementation with predictable iteration order. Its iterator orders elements
according to when the first occurrence of the element was added. When the multiset contains
multiple instances of an element, those instances are consecutive in the iteration order. If all
occurrences of an element are removed, after which that element is added to the multiset, the
element will appear at the end of the iteration.
See the Guava User Guide article on Multiset.
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static <E extends @Nullable Object> LinkedHashMultiset | |
| public static <E extends @Nullable Object> LinkedHashMultiset | create(int
the expected number of distinct elements distinctElements)Creates a new, empty |
| public static <E extends @Nullable Object> LinkedHashMultiset | |
| private void | |
| private void |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| LinkedHashMultiset | back to summary |
|---|---|
| private LinkedHashMultiset() | |
| LinkedHashMultiset | back to summary |
|---|---|
| private LinkedHashMultiset(int distinctElements) | |
| create | back to summary |
|---|---|
| public static <E extends @Nullable Object> LinkedHashMultiset Creates a new, empty | |
| create | back to summary |
|---|---|
| public static <E extends @Nullable Object> LinkedHashMultiset Creates a new, empty
| |
| create | back to summary |
|---|---|
| public static <E extends @Nullable Object> LinkedHashMultiset Creates a new This implementation is highly efficient when
| |
| readObject | back to summary |
|---|---|
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
| |
| writeObject | back to summary |
|---|---|
private void writeObject(ObjectOutputStream stream) throws IOException
| |