K - Type of the map's key element.V - Type of the map's value element.@Public public abstract class MapValue<K extends Value,V extends Value> extends Object implements Value, Map<K,V>
MapValue encapsulates a Java HashMap object.Value,
Map,
HashMap,
Serialized Form| Constructor and Description |
|---|
MapValue()
Initializes the encapsulated map with an empty HashMap.
|
MapValue(Map<K,V> map)
Initializes the encapsulated map with a HashMap filled with all entries of the provided map.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
boolean |
equals(Object obj) |
V |
get(Object key) |
int |
hashCode() |
boolean |
isEmpty() |
Set<K> |
keySet() |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> m) |
void |
read(DataInputView in)
Reads the object's internal data from the given data input view.
|
V |
remove(Object key) |
int |
size() |
String |
toString() |
Collection<V> |
values() |
void |
write(DataOutputView out)
Writes the object's internal data to the given data output view.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic MapValue()
public void read(DataInputView in) throws IOException
IOReadableWritableread in interface IOReadableWritablein - the input view to read the data fromIOException - thrown if any error occurs while reading from the input streampublic void write(DataOutputView out) throws IOException
IOReadableWritablewrite in interface IOReadableWritableout - the output view to receive the data.IOException - thrown if any error occurs while writing to the output streampublic int hashCode()
public boolean equals(Object obj)
public boolean containsKey(Object key)
public boolean containsValue(Object value)
public boolean isEmpty()
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.