Lines Matching defs:multiset
46 * A multiset that supports concurrent modifications and that provides atomic versions of most
96 * @param elements the elements that the multiset should contain
99 ConcurrentHashMultiset<E> multiset = ConcurrentHashMultiset.create();
100 Iterables.addAll(multiset, elements);
101 return multiset;
110 * multiset do not count as map updates at all, since we're usually just mutating the value
115 * <p>The returned multiset is serializable but any serialization caveats
136 * @param countMap backing map for storing the elements in the multiset and
148 * Returns the number of occurrences of {@code element} in this multiset.
161 * <p>If the data in the multiset is modified by any other threads during this method,
203 * Adds a number of occurrences of the specified element to this multiset.
259 * Removes a number of occurrences of the specified element from this multiset. If the multiset
346 * @return the count of {@code element} in the multiset before this call
396 * in the multiset exactly {@code expectedOldCount} times, no changes will be made.
399 * that the multiset has been modified, but not always: in the case that
539 @Override ConcurrentHashMultiset<E> multiset() {