Class UnmodifiableEntrySet<K,V> 
java.lang.Object
org.apache.commons.collections4.collection.AbstractCollectionDecorator<Map.Entry<K,V>>
 
org.apache.commons.collections4.set.AbstractSetDecorator<Map.Entry<K,V>>
 
org.apache.commons.collections4.map.UnmodifiableEntrySet<K,V> 
- Type Parameters:
- K- the type of the keys in the map
- V- the type of the values in the map
- All Implemented Interfaces:
- Serializable,- Iterable<Map.Entry<K,,- V>> - Collection<Map.Entry<K,,- V>> - Set<Map.Entry<K,,- V>> - Unmodifiable
public final class UnmodifiableEntrySet<K,V> 
extends AbstractSetDecorator<Map.Entry<K,V>>
implements Unmodifiable 
Decorates a map entry 
Set to ensure it can't be altered.
 Attempts to modify it will result in an UnsupportedOperationException.
- Since:
- 3.0
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends Map.Entry<K, V>> coll) voidclear()iterator()booleanbooleanremoveAll(Collection<?> coll) booleanbooleanretainAll(Collection<?> coll) Object[]toArray()<T> T[]toArray(T[] array) unmodifiableEntrySet(Set<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.AbstractSetDecoratordecorated, equals, hashCodeMethods inherited from class org.apache.commons.collections4.collection.AbstractCollectionDecoratorcontains, containsAll, isEmpty, setCollection, size, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.CollectionparallelStream, streamMethods inherited from interface java.util.Setcontains, containsAll, isEmpty, size, spliterator
- 
Method Details- 
unmodifiableEntrySetFactory method to create an unmodifiable set of Map Entry objects.- Type Parameters:
- K- the key type
- V- the value type
- Parameters:
- set- the set to decorate, must not be null
- Returns:
- a new unmodifiable entry set
- Throws:
- NullPointerException- if set is null
- Since:
- 4.0
 
- 
add
- 
addAll
- 
clear
- 
iterator
- 
remove
- 
removeAll
- 
removeIf
- 
retainAll
- 
toArray
- 
toArray
 
-