|
JUtil | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.cscott.jutil.MapWrapper<K,V>
net.cscott.jutil.UnmodifiableMap<K,V>
public abstract class UnmodifiableMap<K,V>
This wrapper for Map
s implements Map.entrySet()
so that it returns an UnmodifiableMapSet
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Constructor Summary | |
---|---|
protected |
UnmodifiableMap()
|
Method Summary | ||
---|---|---|
void |
clear()
Throws UnsupportedOperationException . |
|
abstract MapSet<K,V> |
entrySet()
|
|
Set<K> |
keySet()
Throws UnsupportedOperationException . |
|
static
|
proxy(Map<K,V> m)
|
|
V |
put(K k,
V v)
Throws UnsupportedOperationException . |
|
void |
putAll(Map<? extends K,? extends V> m)
Throws UnsupportedOperationException . |
|
V |
remove(Object o)
Throws UnsupportedOperationException . |
|
Collection<V> |
values()
|
Methods inherited from class net.cscott.jutil.MapWrapper |
---|
containsKey, containsValue, equals, get, hashCode, isEmpty, size, toString, wrapped |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected UnmodifiableMap()
Method Detail |
---|
public static <K,V> UnmodifiableMap<K,V> proxy(Map<K,V> m)
public Collection<V> values()
values
in interface Map<K,V>
values
in class MapWrapper<K,V>
public abstract MapSet<K,V> entrySet()
entrySet
in interface Map<K,V>
entrySet
in class MapWrapper<K,V>
public void clear()
UnsupportedOperationException
.
clear
in interface Map<K,V>
clear
in class MapWrapper<K,V>
public Set<K> keySet()
UnsupportedOperationException
.
keySet
in interface Map<K,V>
keySet
in class MapWrapper<K,V>
public V put(K k, V v)
UnsupportedOperationException
.
put
in interface Map<K,V>
put
in class MapWrapper<K,V>
public void putAll(Map<? extends K,? extends V> m)
UnsupportedOperationException
.
putAll
in interface Map<K,V>
putAll
in class MapWrapper<K,V>
public V remove(Object o)
UnsupportedOperationException
.
remove
in interface Map<K,V>
remove
in class MapWrapper<K,V>
|
JUtil | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |