/** * All expired entries are removed from the map prior to determining the * contains result. * {@inheritDoc} */ @Override public boolean containsValue(final Object value) { removeAllExpired(now()); return super.containsValue(value); }
/** * All expired entries are removed from the map prior to returning the key set. * {@inheritDoc} */ @Override public Set<K> keySet() { removeAllExpired(now()); return super.keySet(); }
/** * All expired entries are removed from the map prior to returning the size. * {@inheritDoc} */ @Override public int size() { removeAllExpired(now()); return super.size(); }
/** * All expired entries are removed from the map prior to returning the entry set. * {@inheritDoc} */ @Override public Set<Entry<K, V>> entrySet() { removeAllExpired(now()); return super.entrySet(); }
/** * All expired entries are removed from the map prior to determining if it is empty. * {@inheritDoc} */ @Override public boolean isEmpty() { removeAllExpired(now()); return super.isEmpty(); }
/** * All expired entries are removed from the map prior to returning the value collection. * {@inheritDoc} */ @Override public Collection<V> values() { removeAllExpired(now()); return super.values(); } }