T - the map type of this marshallerpublic class SortedMapMarshaller<T extends SortedMap<Object,Object>> extends AbstractMapMarshaller<T>
SortedMap.KEY_INDEX, VALUE_INDEX| Constructor and Description |
|---|
SortedMapMarshaller(Function<Comparator<? super Object>,T> factory) |
| Modifier and Type | Method and Description |
|---|---|
T |
readFrom(ProtoStreamReader reader)
Reads an object from the specified reader.
|
void |
writeTo(ProtoStreamWriter writer,
T map)
Writes the specified object to the specified writer.
|
getJavaClassclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypeName, read, writesizepublic SortedMapMarshaller(Function<Comparator<? super Object>,T> factory)
public T readFrom(ProtoStreamReader reader) throws IOException
Marshallablereader - a ProtoStream readerIOException - if the object could not be readpublic void writeTo(ProtoStreamWriter writer, T map) throws IOException
MarshallablewriteTo in interface Marshallable<T extends SortedMap<Object,Object>>writeTo in class AbstractMapMarshaller<T extends SortedMap<Object,Object>>writer - a ProtoStream writermap - the object to be writtenIOException - if the object could not be writtenCopyright © 2021 JBoss by Red Hat. All rights reserved.