package dblog; /** * Description: des * Author: zsx * CreateDate: 2020/4/16 20:54 */ import java.util.List; public class LogList extends WrapList { private Runnable verify; LogList setVerify(Runnable verify) { this.verify = verify; return this; } protected final void beforeChange() { if (this.verify != null) { this.verify.run(); } } protected void afterAdd(E add) { } protected void beforeRemove(E remove) { } public List subList(int fromIndex, int toIndex) { return new WrapList(this, this.getWrapped().subList(fromIndex, toIndex)); } public LogList(List wrapped) { super((LogList)null, wrapped); } }