|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectAbstractCollection
AbstractSet
ImmutableSet
A Set that can't be modified once it's been created.
| Constructor Summary | |
ImmutableSet()
|
|
| Method Summary | |
boolean |
add(Object o)
Unsupported, because this set is immutable. |
boolean |
addAll(Collection c)
Unsupported, because this set is immutable. |
void |
clear()
Unsupported, because this set is immutable. |
boolean |
remove(Object o)
Unsupported, because this set is immutable. |
boolean |
removeAll(Collection c)
Unsupported, because this set is immutable. |
boolean |
retainAll(Collection c)
Unsupported, because this set is immutable. |
| Methods inherited from class AbstractSet |
equals, hashCode |
| Methods inherited from class AbstractCollection |
contains, containsAll, isEmpty, iterator, size, toArray, toArray, toString |
| Methods inherited from class Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface Set |
contains, containsAll, isEmpty, iterator, size, toArray, toArray |
| Constructor Detail |
public ImmutableSet()
| Method Detail |
public final boolean add(Object o)
UnsupportedOperationException - Always.public final boolean addAll(Collection c)
UnsupportedOperationException - Always.public final void clear()
UnsupportedOperationException - Always.public final boolean remove(Object o)
UnsupportedOperationException - Always.public final boolean removeAll(Collection c)
UnsupportedOperationException - Always.public final boolean retainAll(Collection c)
UnsupportedOperationException - Always.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||