Package org.ujmp.core.collections.map
Class BufferedWriteMap<K,V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- org.ujmp.core.collections.map.AbstractMap<K,V>
-
- org.ujmp.core.collections.map.BufferedWriteMap<K,V>
-
- All Implemented Interfaces:
java.io.Flushable
,java.io.Serializable
,java.util.Map<K,V>
,Wrapper<java.util.Map<K,V>>
public class BufferedWriteMap<K,V> extends AbstractMap<K,V> implements Wrapper<java.util.Map<K,V>>, java.io.Flushable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<K,V>
map
private static long
serialVersionUID
private java.util.Map<K,V>
writeBuffer
-
Constructor Summary
Constructors Constructor Description BufferedWriteMap(java.util.Map<K,V> map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
void
flush()
V
get(java.lang.Object key)
java.util.Map<K,V>
getWrappedObject()
Returns the object that is wrapped inside the wrapperjava.util.Set<K>
keySet()
V
put(K key, V value)
V
remove(java.lang.Object key)
void
setWrappedObject(java.util.Map<K,V> object)
int
size()
-
Methods inherited from class org.ujmp.core.collections.map.AbstractMap
beforeReadObject, beforeWriteObject, containsKey, containsValue, entrySet, get, getAsString, isEmpty, putAll, toString, values
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
clear
public void clear()
-
get
public V get(java.lang.Object key)
-
keySet
public java.util.Set<K> keySet()
-
remove
public V remove(java.lang.Object key)
-
size
public int size()
-
getWrappedObject
public java.util.Map<K,V> getWrappedObject()
Description copied from interface:Wrapper
Returns the object that is wrapped inside the wrapper- Specified by:
getWrappedObject
in interfaceWrapper<K>
- Returns:
- the inner object
-
flush
public void flush() throws java.io.IOException
- Specified by:
flush
in interfacejava.io.Flushable
- Throws:
java.io.IOException
-
-