示例#1
0
 @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;
     }
   }
 }
示例#2
0
 @Override
 public void evict(NodeList<Object> t1) {
   while (t1.size() > maxSize) {
     t1.removeFirst();
   }
 }