org.maltparser.core.pool
Class ObjectPoolList<T>
java.lang.Object
org.maltparser.core.pool.ObjectPool<T>
org.maltparser.core.pool.ObjectPoolList<T>
public abstract class ObjectPoolList<T>
- extends ObjectPool<T>
ObjectPoolList
public ObjectPoolList()
ObjectPoolList
public ObjectPoolList(int keepThreshold)
create
protected abstract T create()
throws MaltChainedException
- Specified by:
create
in class ObjectPool<T>
- Throws:
MaltChainedException
resetObject
public abstract void resetObject(T o)
throws MaltChainedException
- Specified by:
resetObject
in class ObjectPool<T>
- Throws:
MaltChainedException
checkOut
public T checkOut()
throws MaltChainedException
- Specified by:
checkOut
in class ObjectPool<T>
- Throws:
MaltChainedException
checkIn
public void checkIn(T o)
throws MaltChainedException
- Specified by:
checkIn
in class ObjectPool<T>
- Throws:
MaltChainedException
checkInAll
public void checkInAll()
throws MaltChainedException
- Specified by:
checkInAll
in class ObjectPool<T>
- Throws:
MaltChainedException
getCurrentSize
public int getCurrentSize()
setCurrentSize
public void setCurrentSize(int currentSize)
size
public int size()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright 2007-2010 Johan Hall, Jens Nilsson and Joakim Nivre.