K - the type of the keys in the mapV - the type of the values in the mappublic final class UnmodifiableEntrySet<K,V> extends AbstractSetDecorator<java.util.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(java.util.Map.Entry<K,V> object) |
boolean |
addAll(java.util.Collection<? extends java.util.Map.Entry<K,V>> coll) |
void |
clear() |
java.util.Iterator<java.util.Map.Entry<K,V>> |
iterator() |
boolean |
remove(java.lang.Object object) |
boolean |
removeAll(java.util.Collection<?> coll) |
boolean |
removeIf(java.util.function.Predicate<? super java.util.Map.Entry<K,V>> filter) |
boolean |
retainAll(java.util.Collection<?> coll) |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] array) |
static <K,V> java.util.Set<java.util.Map.Entry<K,V>> |
unmodifiableEntrySet(java.util.Set<java.util.Map.Entry<K,V>> set)
Factory method to create an unmodifiable set of Map Entry objects.
|
equals, hashCodecontains, containsAll, isEmpty, size, toStringpublic static <K,V> java.util.Set<java.util.Map.Entry<K,V>> unmodifiableEntrySet(java.util.Set<java.util.Map.Entry<K,V>> set)
K - the key typeV - the value typeset - the set to decorate, must not be nulljava.lang.NullPointerException - if set is nullpublic void clear()
public boolean remove(java.lang.Object object)
public boolean removeIf(java.util.function.Predicate<? super java.util.Map.Entry<K,V>> filter)
public boolean removeAll(java.util.Collection<?> coll)
public boolean retainAll(java.util.Collection<?> coll)
public java.util.Iterator<java.util.Map.Entry<K,V>> iterator()
iterator in interface java.lang.Iterable<java.util.Map.Entry<K,V>>iterator in interface java.util.Collection<java.util.Map.Entry<K,V>>iterator in interface java.util.Set<java.util.Map.Entry<K,V>>iterator in class AbstractCollectionDecorator<java.util.Map.Entry<K,V>>public java.lang.Object[] toArray()
Copyright © 2010 - 2023 Adobe. All Rights Reserved