O2Plib.db.CSD
Interface CSDlistInterface

All Known Implementing Classes:
CSDcond, CSDexpr, CSDexprList, CSDRmap, CSDRspot

public interface CSDlistInterface

Interface CSDlistInterface defines required methods implemented in list classes for the Composite Samples Database (CSD).

 Note: there are also derived class specific methods:
 [TODO]
   public boolean add(Object o);      - add object to the list
   public boolean remove(Object o);   - remove object from the list.
   public boolean getList(Object o);  - get list of objects
   public Object copy(Object o); - copy object data from the object 
                                   [CHECK] but not the name or id #.

This work was produced by Peter Lemkin of the National Cancer Institute, an agency of the United States Government. As a work of the United States Government there is no associated copyright. It is offered as open source software under the Mozilla Public License (version 1.1) subject to the limitations noted in the accompanying LEGAL file. This notice must be included with the code. The Open2Dprot Mozilla and Legal files are available on http://Open2Dprot.sourceforge.net/.

Version:
$Date: 2005/12/09 15:04:26 $ $Revision: 1.10 $
Author:
P. Lemkin, NCI-Frederick, Frederick, MD, 21702

Method Summary
 void clear()
          clear() - clear object list
 void init(int size)
          init() - initialize object list to specified size if > 0.
 boolean regrow(int newSize)
          regrow() - increase the size of the list
 boolean rightSize()
          rightSize() - right-size the size of the list to the size actually used.
 java.lang.String toString()
          toString() - print features of the list.
 

Method Detail

clear

void clear()
clear() - clear object list


init

void init(int size)
init() - initialize object list to specified size if > 0.

Parameters:
size - to initialize size of the maximum list

regrow

boolean regrow(int newSize)
regrow() - increase the size of the list

Parameters:
newSize - is new size of the list
Returns:
true if succeed

rightSize

boolean rightSize()
rightSize() - right-size the size of the list to the size actually used.

Returns:
true if succeed

toString

java.lang.String toString()
toString() - print features of the list.

Overrides:
toString in class java.lang.Object
Returns:
prettyprint list string