|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.acorn.util.NamedCollectionAdapter<E>
E - the element type.public class NamedCollectionAdapter<E>
A default implementation of NamedCollection.
| Constructor Summary | |
|---|---|
NamedCollectionAdapter(String name,
Collection<? extends E> c)
|
|
| Method Summary | ||
|---|---|---|
boolean |
add(E e)
|
|
boolean |
addAll(Collection<? extends E> c)
|
|
void |
clear()
|
|
boolean |
contains(Object o)
|
|
boolean |
containsAll(Collection<?> c)
|
|
boolean |
equals(Object o)
|
|
protected Collection<E> |
getCollection()
Gets the collection adaptee. |
|
String |
getName()
Gets the name. |
|
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)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NamedCollectionAdapter(String name,
Collection<? extends E> c)
name - c - | Method Detail |
|---|
public String getName()
NamedCollection
getName in interface NamedCollection<E>public boolean add(E e)
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 equals(Object o)
equals in interface Collection<E>equals in class Objectpublic int hashCode()
hashCode in interface Collection<E>hashCode in class Objectpublic 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>protected 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 | |||||||||