package safeluck.drive.evaluation.cEventCenter;
|
|
/**
|
* 事件对象池
|
* MyApplication2
|
* Created by lzw on 2020/1/2. 13:58:00
|
* 邮箱:632393724@qq.com
|
* All Rights Saved! Chongqing AnYun Tech co. LTD
|
*/
|
public class CEventObjPool extends ObjectPool<CEvent>{
|
|
public CEventObjPool(int capacity) {
|
super(capacity);
|
}
|
|
@Override
|
protected CEvent[] createObjPool(int capacity) {
|
return new CEvent[capacity];
|
}
|
|
@Override
|
protected CEvent createNewObj() {
|
return new CEvent();
|
}
|
}
|