- java.lang.Object
-
- org.wildfly.clustering.marshalling.spi.util.MapEntryExternalizer<T>
-
- All Implemented Interfaces:
Externalizer<T>
public class MapEntryExternalizer<T extends Map.Entry<Object,Object>> extends Object implements Externalizer<T>
Externalizer forMap.Entrytypes- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description MapEntryExternalizer(Class<?> targetClass, BiFunction<Object,Object,T> factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<T>getTargetClass()TreadObject(ObjectInput input)voidwriteObject(ObjectOutput output, T entry)-
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
-
-
-
-
Constructor Detail
-
MapEntryExternalizer
public MapEntryExternalizer(Class<?> targetClass, BiFunction<Object,Object,T> factory)
-
-
Method Detail
-
writeObject
public void writeObject(ObjectOutput output, T entry) throws IOException
- Specified by:
writeObjectin interfaceExternalizer<T extends Map.Entry<Object,Object>>- Throws:
IOException
-
readObject
public T readObject(ObjectInput input) throws IOException, ClassNotFoundException
- Specified by:
readObjectin interfaceExternalizer<T extends Map.Entry<Object,Object>>- Throws:
IOExceptionClassNotFoundException
-
getTargetClass
public Class<T> getTargetClass()
- Specified by:
getTargetClassin interfaceExternalizer<T extends Map.Entry<Object,Object>>
-
-