对象池
This commit is contained in:
parent
4b746c3c01
commit
e70225cea5
|
@ -58,6 +58,7 @@ public class ObjectPool<T> implements Iterable<T> {
|
|||
if (object == null) {
|
||||
return;
|
||||
}
|
||||
reset.accept(object);
|
||||
this.pool.push(object);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue