Package com.db4o.foundation
Class SimpleObjectPool<T>
- java.lang.Object
-
- com.db4o.foundation.SimpleObjectPool<T>
-
- All Implemented Interfaces:
ObjectPool<T>
public class SimpleObjectPool<T> extends java.lang.Object implements ObjectPool<T>
-
-
Constructor Summary
Constructors Constructor Description SimpleObjectPool(T... objects)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
borrowObject()
void
returnObject(T o)
-
-
-
Constructor Detail
-
SimpleObjectPool
public SimpleObjectPool(T... objects)
-
-
Method Detail
-
borrowObject
public T borrowObject()
- Specified by:
borrowObject
in interfaceObjectPool<T>
-
returnObject
public void returnObject(T o)
- Specified by:
returnObject
in interfaceObjectPool<T>
-
-