Class UnmodifiableEntrySet<K,V>
- java.lang.Object
 - 
- org.apache.commons.collections4.collection.AbstractCollectionDecorator<E>
 - 
- org.apache.commons.collections4.set.AbstractSetDecorator<java.util.Map.Entry<K,V>>
 - 
- org.apache.commons.collections4.map.UnmodifiableEntrySet<K,V>
 
 
 
 
- 
- Type Parameters:
 K- the type of the keys in the mapV- the type of the values in the map
- All Implemented Interfaces:
 java.io.Serializable,java.lang.Iterable<java.util.Map.Entry<K,V>>,java.util.Collection<java.util.Map.Entry<K,V>>,java.util.Set<java.util.Map.Entry<K,V>>,Unmodifiable
public final class UnmodifiableEntrySet<K,V> extends AbstractSetDecorator<java.util.Map.Entry<K,V>> implements Unmodifiable
Decorates a map entrySetto ensure it can't be altered.Attempts to modify it will result in an UnsupportedOperationException.
- Since:
 - 3.0
 - See Also:
 - Serialized Form
 
 
- 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(java.util.Map.Entry<K,V> object)booleanaddAll(java.util.Collection<? extends java.util.Map.Entry<K,V>> coll)voidclear()java.util.Iterator<java.util.Map.Entry<K,V>>iterator()booleanremove(java.lang.Object object)booleanremoveAll(java.util.Collection<?> coll)booleanremoveIf(java.util.function.Predicate<? super java.util.Map.Entry<K,V>> filter)booleanretainAll(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.- 
Methods inherited from class org.apache.commons.collections4.set.AbstractSetDecorator
equals, hashCode 
- 
Methods inherited from class org.apache.commons.collections4.collection.AbstractCollectionDecorator
contains, containsAll, isEmpty, size, toString 
 - 
 
 - 
 
- 
- 
Method Detail
- 
unmodifiableEntrySet
public 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.- Type Parameters:
 K- the key typeV- the value type- Parameters:
 set- the set to decorate, must not be null- Returns:
 - a new unmodifiable entry set
 - Throws:
 java.lang.NullPointerException- if set is null- Since:
 - 4.0
 
 
- 
clear
public void clear()
 
- 
remove
public boolean remove(java.lang.Object object)
 
- 
removeIf
public boolean removeIf(java.util.function.Predicate<? super java.util.Map.Entry<K,V>> filter)
- Specified by:
 removeIfin interfacejava.util.Collection<K>- Overrides:
 removeIfin classAbstractCollectionDecorator<java.util.Map.Entry<K,V>>- Since:
 - 4.4
 
 
- 
removeAll
public boolean removeAll(java.util.Collection<?> coll)
 
- 
retainAll
public boolean retainAll(java.util.Collection<?> coll)
 
- 
toArray
public java.lang.Object[] toArray()
 
 - 
 
 -