Class UnmodifiableEntrySet
java.lang.Object
org.apache.commons.collections.collection.AbstractCollectionDecorator
org.apache.commons.collections.set.AbstractSetDecorator
org.apache.commons.collections.map.UnmodifiableEntrySet
- All Implemented Interfaces:
Iterable,Collection,Set,Unmodifiable
Decorates a map entry
Set to ensure it can't be altered.- Since:
- Commons Collections 3.0
- Version:
- $Revision: 646777 $ $Date: 2008-04-10 14:33:15 +0200 (Thu, 10 Apr 2008) $
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final classImplementation of a map entry that is unmodifiable.(package private) static final classImplementation of an entry set iterator. -
Field Summary
Fields inherited from class org.apache.commons.collections.collection.AbstractCollectionDecorator
collection -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateUnmodifiableEntrySet(Set set) Constructor that wraps (not copies). -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection coll) voidclear()static SetFactory method to create an unmodifiable set of Map Entry objects.iterator()booleanbooleanremoveAll(Collection coll) booleanretainAll(Collection coll) Object[]toArray()Object[]Methods inherited from class org.apache.commons.collections.set.AbstractSetDecorator
getSetMethods inherited from class org.apache.commons.collections.collection.AbstractCollectionDecorator
contains, containsAll, equals, getCollection, hashCode, isEmpty, size, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, streamMethods inherited from interface java.util.Set
contains, containsAll, equals, hashCode, isEmpty, size, spliterator
-
Constructor Details
-
UnmodifiableEntrySet
Constructor that wraps (not copies).- Parameters:
set- the set to decorate, must not be null- Throws:
IllegalArgumentException- if set is null
-
-
Method Details
-
decorate
Factory method to create an unmodifiable set of Map Entry objects.- Parameters:
set- the set to decorate, must not be null- Throws:
IllegalArgumentException- if set is null
-
add
- Specified by:
addin interfaceCollection- Specified by:
addin interfaceSet- Overrides:
addin classAbstractCollectionDecorator
-
addAll
- Specified by:
addAllin interfaceCollection- Specified by:
addAllin interfaceSet- Overrides:
addAllin classAbstractCollectionDecorator
-
clear
public void clear()- Specified by:
clearin interfaceCollection- Specified by:
clearin interfaceSet- Overrides:
clearin classAbstractCollectionDecorator
-
remove
- Specified by:
removein interfaceCollection- Specified by:
removein interfaceSet- Overrides:
removein classAbstractCollectionDecorator
-
removeAll
- Specified by:
removeAllin interfaceCollection- Specified by:
removeAllin interfaceSet- Overrides:
removeAllin classAbstractCollectionDecorator
-
retainAll
- Specified by:
retainAllin interfaceCollection- Specified by:
retainAllin interfaceSet- Overrides:
retainAllin classAbstractCollectionDecorator
-
iterator
- Specified by:
iteratorin interfaceCollection- Specified by:
iteratorin interfaceIterable- Specified by:
iteratorin interfaceSet- Overrides:
iteratorin classAbstractCollectionDecorator
-
toArray
- Specified by:
toArrayin interfaceCollection- Specified by:
toArrayin interfaceSet- Overrides:
toArrayin classAbstractCollectionDecorator
-
toArray
- Specified by:
toArrayin interfaceCollection- Specified by:
toArrayin interfaceSet- Overrides:
toArrayin classAbstractCollectionDecorator
-