[COLLECTIONS-523] Add javadoc and close pull request. This closes #2.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1654521 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas Neidhart 2015-01-24 14:13:16 +00:00
parent dd5e51e5b3
commit 1ca637930f
1 changed files with 6 additions and 0 deletions

View File

@ -425,6 +425,12 @@ public class PassiveExpiringMap<K, V>
return System.currentTimeMillis(); return System.currentTimeMillis();
} }
/**
* Add the given key-value pair to this map as well as recording the entry's expiration time based on
* the current time in milliseconds and this map's {@link #expiringPolicy}.
* <p>
* {@inheritDoc}
*/
@Override @Override
public V put(final K key, final V value) { public V put(final K key, final V value) {
// record expiration time of new entry // record expiration time of new entry