- java.lang.Object
-
- org.wildfly.clustering.marshalling.spi.util.UnmodifiableMapExternalizer<T>
-
- All Implemented Interfaces:
Externalizer<T>
public class UnmodifiableMapExternalizer<T extends Map<Object,Object>> extends Object implements Externalizer<T>
Externalizer for unmodifiable maps created viaMap.of()orjava.util.Map#ofEntries()methods.- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<T>getTargetClass()TreadObject(ObjectInput input)voidwriteObject(ObjectOutput output, T map)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.clustering.marshalling.Externalizer
size
-
-
-
-
Method Detail
-
writeObject
public void writeObject(ObjectOutput output, T map) throws IOException
- Specified by:
writeObjectin interfaceExternalizer<T extends Map<Object,Object>>- Throws:
IOException
-
readObject
public T readObject(ObjectInput input) throws IOException, ClassNotFoundException
- Specified by:
readObjectin interfaceExternalizer<T extends Map<Object,Object>>- Throws:
IOExceptionClassNotFoundException
-
getTargetClass
public Class<T> getTargetClass()
- Specified by:
getTargetClassin interfaceExternalizer<T extends Map<Object,Object>>
-
-