uk.ac.ebi.adfconverter.common.util.pool
Class CorrectableDataTablePool

java.lang.Object
  extended byuk.ac.ebi.adfconverter.common.util.pool.CorrectableDataTablePool

public class CorrectableDataTablePool
extends java.lang.Object

Pool class for CorrectableDataTable objects Contains a list of available tables. Tables are initialised (created) once, to limit CPU consumption

Since:
19 sept. 2004 From Per Lila String Pool
Version:
1
Author:
Pierre MARGUERITE

Constructor Summary
CorrectableDataTablePool()
           
 
Method Summary
static void clean()
          Cleans the pool
static CorrectableDataTable getItem()
          Retrieved a previous initialised/ created object from the pool.
static void init()
          Inits the pool.
static void returnItem(CorrectableDataTable sb)
          Returns a no more needed CorrectableDataTable object to the pool for reuse.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CorrectableDataTablePool

public CorrectableDataTablePool()
Method Detail

clean

public static void clean()
Cleans the pool


getItem

public static CorrectableDataTable getItem()
Retrieved a previous initialised/ created object from the pool. If there is no more free/unused object, the pool size is double.

Returns:
a new/free/unused CorrectableDataTable object

init

public static void init()
Inits the pool. Creates a given number of CorrectableDataTable objects called pool


returnItem

public static void returnItem(CorrectableDataTable sb)
Returns a no more needed CorrectableDataTable object to the pool for reuse.

Parameters:
sb - th CorrectableDataTable object to return


European Bioinformatics InstituteMicroarray Informatics Team