Lines Matching defs:multiset
476 * Returns a synchronized (thread-safe) multiset backed by the specified
477 * multiset using the specified mutex. In order to guarantee serial access, it
478 * is critical that <b>all</b> access to the backing multiset is accomplished
479 * through the returned multiset.
482 * mutex when iterating over the returned multiset: <pre> {@code
484 * Multiset<E> s = Synchronized.multiset(
496 * @param multiset the multiset to be wrapped
497 * @return a synchronized view of the specified multiset
499 private static <E> Multiset<E> multiset(
500 Multiset<E> multiset, @Nullable Object mutex) {
501 return new SynchronizedMultiset<E>(multiset, mutex);
504 /** @see Synchronized#multiset */
751 keys = multiset(delegate().keys(), mutex);