public class ExternalizableMap extends java.util.HashMap implements Externalizable
| Constructor and Description |
|---|
ExternalizableMap()
Constructs an empty HashMap with the default initial capacity
(16) and the default load factor (0.75).
|
ExternalizableMap(int capacity)
Constructs an empty ExternalizableMap with the specified initial
capacity and the default load factor (0.75).
|
ExternalizableMap(int initialCapacity,
float loadFactor)
Constructs an empty ExternalizableMap with the specified initial
capacity and load factor.
|
ExternalizableMap(java.util.Map map)
Constructs a new ExternalizableMap with the same mappings as the
specified Map.
|
| Modifier and Type | Method and Description |
|---|---|
void |
readObject(java.io.InputStream is)
Use this method to deserializion of object state.
|
java.lang.ClassLoader |
setClassLoader(java.lang.ClassLoader loader)
Sets the class loader used to load
Externalizable objects. |
void |
writeObject(java.io.OutputStream os)
Use this method for serialization of object state.
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuespublic ExternalizableMap()
public ExternalizableMap(int capacity)
initialCapacity - the initial capacity.java.lang.IllegalArgumentException - if the initial capacity is negative.public ExternalizableMap(int initialCapacity,
float loadFactor)
initialCapacity - The initial capacity.loadFactor - The load factor.java.lang.IllegalArgumentException - if the initial capacity is negative
or the load factor is nonpositive.public ExternalizableMap(java.util.Map map)
m - the map whose mappings are to be placed in this map.java.lang.NullPointerException - if the specified map is null.public void readObject(java.io.InputStream is)
throws java.lang.Exception
ExternalizablereadObject in interface Externalizablejava.lang.ExceptionExternalizable.readObject(java.io.InputStream)public void writeObject(java.io.OutputStream os)
throws java.lang.Exception
ExternalizablewriteObject in interface Externalizablejava.lang.ExceptionExternalizable.writeObject(java.io.OutputStream)public java.lang.ClassLoader setClassLoader(java.lang.ClassLoader loader)
Externalizable objects.loader - the class loadernull if it wasn't setCopyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.