T
- the type of the pooled objectpublic static interface ObjectPool.ObjectCreator<T>
ObjectPool.Handle
and calls ObjectPool.Handle.recycle(Object)
once
it can be re-used.限定符和类型 | 方法和说明 |
---|---|
T |
newObject(ObjectPool.Handle<T> handle)
Creates an returns a new
Object that can be used and later recycled via
ObjectPool.Handle.recycle(Object) . |
T newObject(ObjectPool.Handle<T> handle)
Object
that can be used and later recycled via
ObjectPool.Handle.recycle(Object)
.handle
- can NOT be null.