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 |
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, hashCode
contains, containsAll, isEmpty, size, toString
public 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 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 - 2020 Adobe. All Rights Reserved