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:
java.lang.Iterable,java.util.Collection,java.util.Set,Unmodifiable
@Deprecated(since="2021-04-30") public final class UnmodifiableEntrySet extends AbstractSetDecorator implements Unmodifiable
Deprecated.Commons Collections 3 is in maintenance mode. Commons Collections 4 should be used instead.Decorates a map entrySetto ensure it can't be altered.- Since:
- Commons Collections 3.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanadd(java.lang.Object object)Deprecated.booleanaddAll(java.util.Collection coll)Deprecated.voidclear()Deprecated.static java.util.Setdecorate(java.util.Set set)Deprecated.Factory method to create an unmodifiable set of Map Entry objects.java.util.Iteratoriterator()Deprecated.booleanremove(java.lang.Object object)Deprecated.booleanremoveAll(java.util.Collection coll)Deprecated.booleanretainAll(java.util.Collection coll)Deprecated.java.lang.Object[]toArray()Deprecated.java.lang.Object[]toArray(java.lang.Object[] array)Deprecated.-
Methods inherited from class org.apache.commons.collections.collection.AbstractCollectionDecorator
contains, containsAll, equals, hashCode, isEmpty, size, toString
-
-
-
-
Method Detail
-
decorate
public static java.util.Set decorate(java.util.Set set)
Deprecated.Factory method to create an unmodifiable set of Map Entry objects.- Parameters:
set- the set to decorate, must not be null- Throws:
java.lang.IllegalArgumentException- if set is null
-
add
public boolean add(java.lang.Object object)
Deprecated.- Specified by:
addin interfacejava.util.Collection- Specified by:
addin interfacejava.util.Set- Overrides:
addin classAbstractCollectionDecorator
-
addAll
public boolean addAll(java.util.Collection coll)
Deprecated.- Specified by:
addAllin interfacejava.util.Collection- Specified by:
addAllin interfacejava.util.Set- Overrides:
addAllin classAbstractCollectionDecorator
-
clear
public void clear()
Deprecated.- Specified by:
clearin interfacejava.util.Collection- Specified by:
clearin interfacejava.util.Set- Overrides:
clearin classAbstractCollectionDecorator
-
remove
public boolean remove(java.lang.Object object)
Deprecated.- Specified by:
removein interfacejava.util.Collection- Specified by:
removein interfacejava.util.Set- Overrides:
removein classAbstractCollectionDecorator
-
removeAll
public boolean removeAll(java.util.Collection coll)
Deprecated.- Specified by:
removeAllin interfacejava.util.Collection- Specified by:
removeAllin interfacejava.util.Set- Overrides:
removeAllin classAbstractCollectionDecorator
-
retainAll
public boolean retainAll(java.util.Collection coll)
Deprecated.- Specified by:
retainAllin interfacejava.util.Collection- Specified by:
retainAllin interfacejava.util.Set- Overrides:
retainAllin classAbstractCollectionDecorator
-
iterator
public java.util.Iterator iterator()
Deprecated.- Specified by:
iteratorin interfacejava.util.Collection- Specified by:
iteratorin interfacejava.lang.Iterable- Specified by:
iteratorin interfacejava.util.Set- Overrides:
iteratorin classAbstractCollectionDecorator
-
toArray
public java.lang.Object[] toArray()
Deprecated.- Specified by:
toArrayin interfacejava.util.Collection- Specified by:
toArrayin interfacejava.util.Set- Overrides:
toArrayin classAbstractCollectionDecorator
-
toArray
public java.lang.Object[] toArray(java.lang.Object[] array)
Deprecated.- Specified by:
toArrayin interfacejava.util.Collection- Specified by:
toArrayin interfacejava.util.Set- Overrides:
toArrayin classAbstractCollectionDecorator
-
-