net.cscott.jutil

Class UnmodifiableMultiMap<K,V>

public abstract class UnmodifiableMultiMap<K,V> extends AbstractMap<K,V> implements MultiMap<K,V>

UnmodifiableMultiMap is an abstract superclass to save developers the trouble of implementing the various mutator methds of the MultiMap interface.

Version: $Id: UnmodifiableMultiMap.java,v 1.2 2004/01/13 20:47:05 cananian Exp $

Author: Felix S. Klock II

Method Summary
booleanadd(K key, V value)
Throws UnsupportedOperationException.
booleanaddAll(K key, Collection<? extends V> values)
Throws UnsupportedOperationException.
booleanaddAll(MultiMap<? extends K,? extends V> mm)
Throws UnsupportedOperationException.
voidclear()
Throws UnsupportedOperationException.
abstract MultiMapSet<K,V>entrySet()
Returns a Set view that allows you to recapture the MultiMap view.
static <K,V> MultiMap<K,V>proxy(MultiMap<K,V> mmap)
Constructs and returns an unmodifiable MultiMap backed by mmap.
Vput(K key, V value)
Throws UnsupportedOperationException.
voidputAll(Map<? extends K,? extends V> t)
Throws UnsupportedOperationException.
Vremove(Object key)
Throws UnsupportedOperationException.
booleanremove(Object key, Object value)
Throws UnsupportedOperationException.
booleanremoveAll(K key, Collection<?> values)
Throws UnsupportedOperationException.
booleanretainAll(K key, Collection<?> values)
Throws UnsupportedOperationException.

Method Detail

add

public boolean add(K key, V value)
Throws UnsupportedOperationException.

addAll

public boolean addAll(K key, Collection<? extends V> values)
Throws UnsupportedOperationException.

addAll

public boolean addAll(MultiMap<? extends K,? extends V> mm)
Throws UnsupportedOperationException.

clear

public void clear()
Throws UnsupportedOperationException.

entrySet

public abstract MultiMapSet<K,V> entrySet()
Returns a Set view that allows you to recapture the MultiMap view.

proxy

public static <K,V> MultiMap<K,V> proxy(MultiMap<K,V> mmap)
Constructs and returns an unmodifiable MultiMap backed by mmap.

put

public V put(K key, V value)
Throws UnsupportedOperationException.

putAll

public void putAll(Map<? extends K,? extends V> t)
Throws UnsupportedOperationException.

remove

public V remove(Object key)
Throws UnsupportedOperationException.

remove

public boolean remove(Object key, Object value)
Throws UnsupportedOperationException.

removeAll

public boolean removeAll(K key, Collection<?> values)
Throws UnsupportedOperationException.

retainAll

public boolean retainAll(K key, Collection<?> values)
Throws UnsupportedOperationException.
Copyright © 2003 C. Scott Ananian