Constructor and Description |
---|
TimeMap() |
TimeMap(int inDefaultTimeLiveValueSecond)
set the default time of the attribute live in second
|
TimeMap(int inDefaultTimeLiveValueSecond,
int maxSize) |
TimeMap(Map<K,V> internalMap) |
TimeMap(Map<K,V> internalMap,
int inDefaultTimeLiveValueSecond) |
TimeMap(Map<K,V> internalMap,
int inDefaultTimeLiveValueSecond,
int maxSize) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
clearCache()
clear value invalided by the time
|
boolean |
containsKey(Object arg0) |
boolean |
containsValue(Object arg0) |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object key) |
int |
getDefaultTimeValue() |
int |
getMaxSize() |
boolean |
isEmpty() |
Set<K> |
keySet() |
void |
load(File file) |
void |
load(InputStream in) |
static void |
main(String[] args) |
V |
put(K key,
V value) |
V |
put(K key,
V value,
int liveTime) |
void |
putAll(Map<? extends K,? extends V> m) |
V |
remove(Object key) |
void |
setDefaultLiveTimeValue(int defaultTimeValue)
set the default time of the attribute live of in second
|
void |
setMaxSize(int maxSize) |
int |
size() |
void |
store(File file) |
void |
store(OutputStream out) |
Collection<V> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public TimeMap()
public TimeMap(int inDefaultTimeLiveValueSecond)
public TimeMap(int inDefaultTimeLiveValueSecond, int maxSize)
public int getDefaultTimeValue()
public void setDefaultLiveTimeValue(int defaultTimeValue)
defaultTimeValue
- public boolean containsKey(Object arg0)
containsKey
in interface Map<K,V>
public boolean containsValue(Object arg0)
containsValue
in interface Map<K,V>
public void clearCache()
public int getMaxSize()
public void setMaxSize(int maxSize)
public void store(OutputStream out) throws Exception
Exception
public void load(InputStream in) throws IOException
IOException
Copyright © 2012-2018. All Rights Reserved.