|
IcedTea-Web NetX |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jnlp.util.TimedHashMap<K,V>
public class TimedHashMap<K,V>
Simple utility class that extends HashMap by adding an expiry to the entries. This map stores entries, and returns them only if the entries were last accessed within time t=10 seconds
Constructor Summary | |
---|---|
TimedHashMap()
|
Method Summary | |
---|---|
V |
get(K key)
Return cached item if it has not already expired. |
V |
put(K key,
V value)
Store the item in the map and associate a timestamp with it |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimedHashMap()
Method Detail |
---|
public V put(K key, V value)
key
- The keyvalue
- The value to storepublic V get(K key)
key
- The key
|
IcedTea-Web NetX |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |