Class LinkedHashMapMarshaller
- java.lang.Object
-
- org.wildfly.clustering.marshalling.protostream.util.AbstractMapMarshaller<LinkedHashMap<Object,Object>>
-
- org.wildfly.clustering.marshalling.protostream.util.LinkedHashMapMarshaller
-
- All Implemented Interfaces:
org.infinispan.protostream.BaseMarshaller<LinkedHashMap<Object,Object>>,org.infinispan.protostream.ProtobufTagMarshaller<LinkedHashMap<Object,Object>>,Marshallable<LinkedHashMap<Object,Object>>,ProtoStreamMarshaller<LinkedHashMap<Object,Object>>
public class LinkedHashMapMarshaller extends AbstractMapMarshaller<LinkedHashMap<Object,Object>>
Marshaller for aLinkedHashMap.- Author:
- Paul Ferraro
-
-
Field Summary
-
Fields inherited from class org.wildfly.clustering.marshalling.protostream.util.AbstractMapMarshaller
KEY_INDEX, VALUE_INDEX
-
-
Constructor Summary
Constructors Constructor Description LinkedHashMapMarshaller()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends LinkedHashMap<Object,Object>>getJavaClass()Returns the type of object handled by this marshallable instance.LinkedHashMap<Object,Object>readFrom(ProtoStreamReader reader)Reads an object from the specified reader.voidwriteTo(ProtoStreamWriter writer, LinkedHashMap<Object,Object> map)Writes the specified object to the specified writer.-
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.protostream.ProtoStreamMarshaller
getTypeName, read, write
-
-
-
-
Method Detail
-
readFrom
public LinkedHashMap<Object,Object> readFrom(ProtoStreamReader reader) throws IOException
Description copied from interface:MarshallableReads an object from the specified reader.- Parameters:
reader- a ProtoStream reader- Returns:
- the read object
- Throws:
IOException- if the object could not be read
-
writeTo
public void writeTo(ProtoStreamWriter writer, LinkedHashMap<Object,Object> map) throws IOException
Description copied from interface:MarshallableWrites the specified object to the specified writer.- Specified by:
writeToin interfaceMarshallable<LinkedHashMap<Object,Object>>- Overrides:
writeToin classAbstractMapMarshaller<LinkedHashMap<Object,Object>>- Parameters:
writer- a ProtoStream writermap- the object to be written- Throws:
IOException- if the object could not be written
-
getJavaClass
public Class<? extends LinkedHashMap<Object,Object>> getJavaClass()
Description copied from interface:MarshallableReturns the type of object handled by this marshallable instance.- Specified by:
getJavaClassin interfaceorg.infinispan.protostream.BaseMarshaller<LinkedHashMap<Object,Object>>- Specified by:
getJavaClassin interfaceMarshallable<LinkedHashMap<Object,Object>>- Overrides:
getJavaClassin classAbstractMapMarshaller<LinkedHashMap<Object,Object>>- Returns:
- the type of object handled by this marshallable instance.
-
-