public class SortedMapExternalizer<T extends SortedMap<Object,Object>> extends MapExternalizer<T,Comparator<Object>>
SortedMap.
Requires additional serialization of the comparator.| Constructor and Description |
|---|
SortedMapExternalizer(Class<?> targetClass,
Function<Comparator<Object>,T> factory) |
| Modifier and Type | Method and Description |
|---|---|
protected Comparator<Object> |
readContext(ObjectInput input)
Reads the map context from the specified input stream.
|
protected void |
writeContext(ObjectOutput output,
T map)
Writes the context of the specified map to the specified output stream.
|
getTargetClass, readObject, writeObjectpublic SortedMapExternalizer(Class<?> targetClass, Function<Comparator<Object>,T> factory)
protected void writeContext(ObjectOutput output, T map) throws IOException
MapExternalizerwriteContext in class MapExternalizer<T extends SortedMap<Object,Object>,Comparator<Object>>output - an output streammap - the target mapIOException - if the constructor context cannot be written to the streamprotected Comparator<Object> readContext(ObjectInput input) throws IOException, ClassNotFoundException
MapExternalizerreadContext in class MapExternalizer<T extends SortedMap<Object,Object>,Comparator<Object>>input - an input streamIOException - if the constructor context cannot be read from the streamClassNotFoundException - if a class could not be foundCopyright © 2020 JBoss by Red Hat. All rights reserved.