对象池

This commit is contained in:
石皮幼鸟 2024-04-08 23:06:39 +08:00
parent 4b746c3c01
commit e70225cea5
1 changed files with 1 additions and 0 deletions

View File

@ -58,6 +58,7 @@ public class ObjectPool<T> implements Iterable<T> {
if (object == null) {
return;
}
reset.accept(object);
this.pool.push(object);
}