org.maltparser.core.pool
Class ObjectPool<T>
java.lang.Object
org.maltparser.core.pool.ObjectPool<T>
- Direct Known Subclasses:
- ObjectPoolList, ObjectPoolSet
public abstract class ObjectPool<T>
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
keepThreshold
protected int keepThreshold
ObjectPool
public ObjectPool()
ObjectPool
public ObjectPool(int keepThreshold)
getKeepThreshold
public int getKeepThreshold()
setKeepThreshold
public void setKeepThreshold(int keepThreshold)
create
protected abstract T create()
throws MaltChainedException
- Throws:
MaltChainedException
resetObject
public abstract void resetObject(T o)
throws MaltChainedException
- Throws:
MaltChainedException
checkOut
public abstract T checkOut()
throws MaltChainedException
- Throws:
MaltChainedException
checkIn
public abstract void checkIn(T o)
throws MaltChainedException
- Throws:
MaltChainedException
checkInAll
public abstract void checkInAll()
throws MaltChainedException
- Throws:
MaltChainedException
Copyright 2007-2010 Johan Hall, Jens Nilsson and Joakim Nivre.