Methods Summary |
---|
public void | add(CDDisc aCDDisc)add
theCollection.add( aCDDisc );
|
public CDDisc[] | findAll()findAll
int size = theCollection.size();
CDDisc[] cddiscs = new CDDisc[size];
Iterator iterator = theCollection.iterator();
for ( int i = 0; i < cddiscs.length; i++ )
{
cddiscs[i] = ( CDDisc ) iterator.next();
}
return cddiscs;
|
public CDDisc[] | findByCDRelease(CDRelease aCDRelease)findByCDRelease
Iterator iterator = theCollection.iterator();
Vector cdDiscs = new Vector();
while ( iterator.hasNext() )
{
CDDisc cdDisc = ( CDDisc ) iterator.next();
if ( cdDisc.getCdRelease().equals( aCDRelease ) )
{
cdDiscs.add( cdDisc );
}
}
return ( CDDisc[] ) cdDiscs.toArray();
|
public CDDisc | findByPhysicalID(PhysicalID aPhysicalID)findByCDRelease
Iterator iterator = theCollection.iterator();
while ( iterator.hasNext() )
{
CDDisc cdDisc = ( CDDisc ) iterator.next();
if ( cdDisc.getPhysicalID().equals( aPhysicalID ) )
{
return cdDisc;
}
}
return null;
|
public void | remove(CDDisc aCDDisc)remove
theCollection.remove( aCDDisc );
|
public void | removeAll_TestingOnly()removeAll
theCollection.clear();
|