com.phoenixst.collections
public abstract class AbstractSingletonCollection extends Object implements Collection
Collection
view. This
view may be empty at any given point in time.
Since: 1.0
Version: $Revision: 1.11 $
Constructor Summary | |
---|---|
protected | AbstractSingletonCollection(Object element)
Creates a new AbstractSingletonCollection . |
Method Summary | |
---|---|
boolean | add(Object object)
Throws an UnsupportedOperationException . |
boolean | addAll(Collection collection)
Throws an UnsupportedOperationException . |
void | clear() |
boolean | contains(Object object) |
boolean | containsAll(Collection collection) |
protected Object | getElement() |
abstract boolean | isEmpty() |
Iterator | iterator() |
boolean | remove(Object object) |
boolean | removeAll(Collection collection) |
protected abstract boolean | removeElement() |
boolean | retainAll(Collection collection) |
int | size() |
Object[] | toArray() |
Object[] | toArray(Object[] array) |
String | toString() |
AbstractSingletonCollection
.UnsupportedOperationException
.UnsupportedOperationException
.