T - the map entry type of this marshallerpublic class MapEntryMarshaller<T extends Map.Entry<Object,Object>> extends Object implements ProtoStreamMarshaller<T>
Map.Entry| Constructor and Description |
|---|
MapEntryMarshaller(Function<AbstractMap.SimpleEntry<Object,Object>,T> factory) |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends T> |
getJavaClass()
Returns the type of object handled by this marshallable instance.
|
T |
readFrom(ProtoStreamReader reader)
Reads an object from the specified reader.
|
void |
writeTo(ProtoStreamWriter writer,
T entry)
Writes the specified object to the specified writer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypeName, read, writepublic MapEntryMarshaller(Function<AbstractMap.SimpleEntry<Object,Object>,T> factory)
public T readFrom(ProtoStreamReader reader) throws IOException
MarshallablereadFrom in interface Marshallable<T extends Map.Entry<Object,Object>>reader - a ProtoStream readerIOException - if the object could not be readpublic void writeTo(ProtoStreamWriter writer, T entry) throws IOException
MarshallablewriteTo in interface Marshallable<T extends Map.Entry<Object,Object>>writer - a ProtoStream writerentry - the object to be writtenIOException - if the object could not be writtenpublic Class<? extends T> getJavaClass()
MarshallablegetJavaClass in interface org.infinispan.protostream.BaseMarshaller<T extends Map.Entry<Object,Object>>getJavaClass in interface Marshallable<T extends Map.Entry<Object,Object>>Copyright © 2021 JBoss by Red Hat. All rights reserved.