V - the type of value stored in this map.public class StreamableHashIntMap<V> extends HashIntMap<V> implements Streamable
HashIntMap extension that can be streamed. The keys and values in the map must also
be of streamable types.Streamable,
Serialized FormAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>Streamable.ClosureIntMap.IntEntry<V>DEFAULT_BUCKETS, DEFAULT_LOAD_FACTOR| Constructor and Description |
|---|
StreamableHashIntMap()
Constructs an empty hash int map with the default number of hash buckets.
|
StreamableHashIntMap(int buckets,
float loadFactor)
Constructs an empty hash int map with the specified number of hash buckets.
|
| Modifier and Type | Method and Description |
|---|---|
void |
readObject(ObjectInputStream in)
Reads our custom streamable fields.
|
void |
writeObject(ObjectOutputStream out)
Writes our custom streamable fields.
|
clear, clone, containsKey, containsKey, containsValue, elements, ensureCapacity, entrySet, get, get, intEntrySet, intKeySet, keys, keySet, put, put, putAll, remove, remove, sizeequals, hashCode, isEmpty, putAll, toString, valuescompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, isEmpty, merge, putAll, putIfAbsent, remove, replace, replace, replaceAll, valuespublic StreamableHashIntMap(int buckets,
float loadFactor)
public StreamableHashIntMap()
public void writeObject(ObjectOutputStream out) throws IOException
IOExceptionpublic void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionCopyright © 2015. All rights reserved.