public final class UnmodifiableEntrySet extends AbstractSetDecorator implements Unmodifiable
Set
to ensure it can't be altered.Modifier and Type | Method and Description |
---|---|
boolean |
add(java.lang.Object object) |
boolean |
addAll(java.util.Collection coll) |
void |
clear() |
static java.util.Set |
decorate(java.util.Set set)
Factory method to create an unmodifiable set of Map Entry objects.
|
java.util.Iterator |
iterator() |
boolean |
remove(java.lang.Object object) |
boolean |
removeAll(java.util.Collection coll) |
boolean |
retainAll(java.util.Collection coll) |
java.lang.Object[] |
toArray() |
java.lang.Object[] |
toArray(java.lang.Object[] array) |
contains, containsAll, equals, hashCode, isEmpty, size, toString
public static java.util.Set decorate(java.util.Set set)
set
- the set to decorate, must not be nulljava.lang.IllegalArgumentException
- if set is nullpublic boolean add(java.lang.Object object)
add
in interface java.util.Collection
add
in interface java.util.Set
add
in class AbstractCollectionDecorator
public boolean addAll(java.util.Collection coll)
addAll
in interface java.util.Collection
addAll
in interface java.util.Set
addAll
in class AbstractCollectionDecorator
public void clear()
clear
in interface java.util.Collection
clear
in interface java.util.Set
clear
in class AbstractCollectionDecorator
public boolean remove(java.lang.Object object)
remove
in interface java.util.Collection
remove
in interface java.util.Set
remove
in class AbstractCollectionDecorator
public boolean removeAll(java.util.Collection coll)
removeAll
in interface java.util.Collection
removeAll
in interface java.util.Set
removeAll
in class AbstractCollectionDecorator
public boolean retainAll(java.util.Collection coll)
retainAll
in interface java.util.Collection
retainAll
in interface java.util.Set
retainAll
in class AbstractCollectionDecorator
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
iterator
in interface java.util.Collection
iterator
in interface java.util.Set
iterator
in class AbstractCollectionDecorator
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection
toArray
in interface java.util.Set
toArray
in class AbstractCollectionDecorator
public java.lang.Object[] toArray(java.lang.Object[] array)
toArray
in interface java.util.Collection
toArray
in interface java.util.Set
toArray
in class AbstractCollectionDecorator
Copyright © 2010 - 2020 Adobe. All Rights Reserved