com.phoenixst.collections

Class AbstractSingletonCollection

public abstract class AbstractSingletonCollection extends Object implements Collection

A modifiable, lazy singleton Collection view. This view may be empty at any given point in time.

Since: 1.0

Version: $Revision: 1.11 $

Author: Ray A. Conner

Constructor Summary
protected AbstractSingletonCollection(Object element)
Creates a new AbstractSingletonCollection.
Method Summary
booleanadd(Object object)
Throws an UnsupportedOperationException.
booleanaddAll(Collection collection)
Throws an UnsupportedOperationException.
voidclear()
booleancontains(Object object)
booleancontainsAll(Collection collection)
protected ObjectgetElement()
abstract booleanisEmpty()
Iteratoriterator()
booleanremove(Object object)
booleanremoveAll(Collection collection)
protected abstract booleanremoveElement()
booleanretainAll(Collection collection)
intsize()
Object[]toArray()
Object[]toArray(Object[] array)
StringtoString()

Constructor Detail

AbstractSingletonCollection

protected AbstractSingletonCollection(Object element)
Creates a new AbstractSingletonCollection.

Method Detail

add

public boolean add(Object object)
Throws an UnsupportedOperationException.

addAll

public boolean addAll(Collection collection)
Throws an UnsupportedOperationException.

clear

public void clear()

contains

public boolean contains(Object object)

containsAll

public boolean containsAll(Collection collection)

getElement

protected final Object getElement()

isEmpty

public abstract boolean isEmpty()

iterator

public Iterator iterator()

remove

public boolean remove(Object object)

removeAll

public boolean removeAll(Collection collection)

removeElement

protected abstract boolean removeElement()

retainAll

public boolean retainAll(Collection collection)

size

public int size()

toArray

public Object[] toArray()

toArray

public Object[] toArray(Object[] array)

toString

public String toString()
See the Plexus project home, hosted by SourceForge.
Copyright B) 1994-2006, by Phoenix Software Technologists, Inc. and others. All Rights Reserved. Use is subject to license terms.