public abstract class UnmodifiableMapSet<K,V> extends SetWrapper<Map.Entry<K,V>>
UnmodifiableMapSet prevents mutation of a wrapped
MapSet.| Modifier | Constructor and Description |
|---|---|
protected |
UnmodifiableMapSet() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Map.Entry<K,V> o) |
boolean |
addAll(Collection<? extends Map.Entry<K,V>> c) |
abstract UnmodifiableMap<K,V> |
asMap() |
void |
clear() |
Iterator<Map.Entry<K,V>> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
protected abstract MapSet<K,V> |
wrapped()
Implementations should return the wrapped
MapSet here. |
contains, containsAll, equals, hashCode, isEmpty, size, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontains, containsAll, equals, hashCode, isEmpty, size, spliterator, toArray, toArrayparallelStream, removeIf, streamprotected abstract MapSet<K,V> wrapped()
MapSet here.wrapped in class SetWrapper<Map.Entry<K,V>>public abstract UnmodifiableMap<K,V> asMap()
public boolean addAll(Collection<? extends Map.Entry<K,V>> c)
public void clear()
public boolean remove(Object o)
public boolean removeAll(Collection<?> c)
Copyright (c) 2006 C. Scott Ananian