public final class UnmodifiableEntrySet<K,V> extends AbstractSetDecorator<Map .Entry <K ,V>> implements Unmodifiable
Set to ensure it can't be altered.
Attempts to modify it will result in an UnsupportedOperationException.
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Map
|
boolean |
addAll(Collection
|
void |
clear()
|
Iterator |
iterator()
|
boolean |
remove(Object
|
boolean |
removeAll(Collection
|
boolean |
retainAll(Collection
|
Object |
toArray()
|
<T> T[] |
toArray(T[] array)
|
static <K |
unmodifiableEntrySet(Set
Factory method to create an unmodifiable set of Map Entry objects.
|
decorated, equals, hashCodecontains, containsAll, isEmpty, setCollection, size, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontains, containsAll, isEmpty, size, spliteratorparallelStream, removeIf, streampublic static <K,V> Set <Map .Entry <K ,V>> unmodifiableEntrySet(Set <Map .Entry <K ,V>> set)
K - the key type
V - the value type
set - the set to decorate, must not be null
NullPointerException - if set is null
public boolean addAll(Collection<? extends Map .Entry <K ,V>> coll)
public void clear()
public boolean remove(Objectobject)
public boolean removeAll(Collection<?> coll)
public boolean retainAll(Collection<?> coll)
public Object[] toArray()
public <T> T[] toArray(T[] array)