|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.acorn.util.UnmodifiableCollection<E>
E - the element type.public class UnmodifiableCollection<E>
An unmodifiable collection wrapper filtering out additions and removals.
| Constructor Summary | |
|---|---|
UnmodifiableCollection()
Constructs an empty collection. |
|
UnmodifiableCollection(Collection<? extends E> c)
Constructs a new collection. |
|
| Method Summary | ||
|---|---|---|
boolean |
add(E o)
|
|
boolean |
addAll(Collection<? extends E> c)
|
|
void |
clear()
|
|
Object |
clone()
|
|
boolean |
contains(Object o)
|
|
boolean |
containsAll(Collection<?> c)
|
|
boolean |
equals(Object o)
|
|
protected Collection<E> |
getCollection()
Gets the collection adaptee. |
|
int |
hashCode()
|
|
boolean |
isEmpty()
|
|
Iterator<E> |
iterator()
|
|
boolean |
remove(Object o)
|
|
boolean |
removeAll(Collection<?> c)
|
|
boolean |
retainAll(Collection<?> c)
|
|
protected void |
setCollection(Collection<E> c)
Sets the collection adaptee. |
|
int |
size()
|
|
Object[] |
toArray()
|
|
|
toArray(T[] a)
|
|
String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UnmodifiableCollection()
public UnmodifiableCollection(Collection<? extends E> c)
c - a collection to wrap.| Method Detail |
|---|
public boolean equals(Object o)
equals in interface Collection<E>equals in class Objectpublic int hashCode()
hashCode in interface Collection<E>hashCode in class Objectpublic Object clone()
clone in class Objectpublic boolean add(E o)
add in interface Collection<E>public boolean addAll(Collection<? extends E> c)
addAll in interface Collection<E>public void clear()
clear in interface Collection<E>public boolean contains(Object o)
contains in interface Collection<E>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<E>public boolean isEmpty()
isEmpty in interface Collection<E>public Iterator<E> iterator()
iterator in interface Iterable<E>iterator in interface Collection<E>public boolean remove(Object o)
remove in interface Collection<E>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<E>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<E>public int size()
size in interface Collection<E>public Object[] toArray()
toArray in interface Collection<E>public <T> T[] toArray(T[] a)
toArray in interface Collection<E>public String toString()
toString in class Objectprotected Collection<E> getCollection()
protected void setCollection(Collection<E> c)
c - the wrapped collection.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||