Lines Matching refs:multimap
585 * Returns a synchronized (thread-safe) multimap backed by the specified
586 * multimap using the specified mutex. In order to guarantee serial access, it
587 * is critical that <b>all</b> access to the backing multimap is accomplished
588 * through the returned multimap.
591 * mutex when accessing any of the return multimap's collection views:
594 * Multimap<K, V> m = Synchronized.multimap(
608 * @param multimap the multimap to be wrapped in a synchronized view
609 * @return a synchronized view of the specified multimap
611 public static <K, V> Multimap<K, V> multimap(
612 Multimap<K, V> multimap, @Nullable Object mutex) {
613 return new SynchronizedMultimap<K, V>(multimap, mutex);
616 /** @see Synchronized#multimap */
618 implements Multimap<K, V> {
626 @Override protected Multimap<K, V> delegate() {
627 return (Multimap<K, V>) super.delegate();
630 SynchronizedMultimap(Multimap<K, V> delegate, @Nullable Object mutex) {
682 public boolean putAll(Multimap<? extends K, ? extends V> multimap) {
684 return delegate().putAll(multimap);
776 * Returns a synchronized (thread-safe) list multimap backed by the specified
777 * multimap using the specified mutex.
779 * <p>You must follow the warnings described for {@link #multimap}.
781 * @param multimap the multimap to be wrapped in a synchronized view
782 * @return a synchronized view of the specified multimap
785 ListMultimap<K, V> multimap, @Nullable Object mutex) {
786 return new SynchronizedListMultimap<K, V>(multimap, mutex);
819 * Returns a synchronized (thread-safe) set multimap backed by the specified
820 * multimap using the specified mutex.
822 * <p>You must follow the warnings described for {@link #multimap}.
824 * @param multimap the multimap to be wrapped in a synchronized view
825 * @return a synchronized view of the specified multimap
828 SetMultimap<K, V> multimap, @Nullable Object mutex) {
829 return new SynchronizedSetMultimap<K, V>(multimap, mutex);
871 * Returns a synchronized (thread-safe) sorted set multimap backed by the
872 * specified multimap using the specified mutex.
874 * <p>You must follow the warnings described for {@link #multimap}.
876 * @param multimap the multimap to be wrapped in a synchronized view
877 * @return a synchronized view of the specified multimap
880 SortedSetMultimap<K, V> multimap, @Nullable Object mutex) {
881 return new SynchronizedSortedSetMultimap<K, V>(multimap, mutex);
995 /** @see Synchronized#multimap */