@Override public void evict(NodeList<Object> t1) { long now = scheduler.now(); while (!t1.isEmpty()) { NodeList.Node<Object> n = t1.head.next; if (test(n.value, now)) { t1.removeFirst(); } else { break; } } }
@Override public void evict(NodeList<Object> t1) { while (t1.size() > maxSize) { t1.removeFirst(); } }