com.atlassian.jira.rpc.auth
Class TokenMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
com.atlassian.jira.rpc.auth.TokenMap<K,V>
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map<K,V>
public class TokenMap<K,V>
- extends java.util.HashMap<K,V>
A simple map with a timeout on the get/put methods.
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from class java.util.AbstractMap |
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
|
Constructor Summary |
TokenMap(long tokenTimeout)
|
| Methods inherited from class java.util.HashMap |
clone, containsValue, entrySet, isEmpty, keySet, putAll, size, values |
| Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
equals, hashCode |
TokenMap
public TokenMap(long tokenTimeout)
put
public V put(K key,
V value)
- Specified by:
put in interface java.util.Map<K,V>- Overrides:
put in class java.util.HashMap<K,V>
get
public V get(java.lang.Object key)
- Specified by:
get in interface java.util.Map<K,V>- Overrides:
get in class java.util.HashMap<K,V>
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKey in interface java.util.Map<K,V>- Overrides:
containsKey in class java.util.HashMap<K,V>
remove
public V remove(java.lang.Object key)
- Specified by:
remove in interface java.util.Map<K,V>- Overrides:
remove in class java.util.HashMap<K,V>
clear
public void clear()
- Specified by:
clear in interface java.util.Map<K,V>- Overrides:
clear in class java.util.HashMap<K,V>
Copyright © 2004-2011 Atlassian. All Rights Reserved.