Lines Matching refs:eldest
424 * removes the eldest entry if appropriate.
429 // Remove eldest entry if instructed
430 Entry<K,V> eldest = header.after;
431 if (removeEldestEntry(eldest)) {
432 removeEntryForKey(eldest.key);
438 * table or remove the eldest entry.
449 * Returns <tt>true</tt> if this map should remove its eldest entry.
452 * with the opportunity to remove the eldest entry each time a new one
457 * entries and then delete the eldest entry each time a new entry is
462 * protected boolean removeEldestEntry(Map.Entry eldest) {
476 * map acts like a normal map - the eldest element is never removed).
478 * @param eldest The least recently inserted entry in the map, or if
485 * entry, the eldest entry is also the newest.
486 * @return <tt>true</tt> if the eldest entry should be removed
489 protected boolean removeEldestEntry(Map.Entry<K,V> eldest) {