T - the set type of this marshallerpublic class SortedSetMarshaller<T extends SortedSet<Object>> extends AbstractCollectionMarshaller<T>
SortedSet.ELEMENT_INDEX| Constructor and Description |
|---|
SortedSetMarshaller(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 set)
Writes the specified object to the specified writer.
|
getJavaClassclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypeName, readFrom, writeTosizepublic SortedSetMarshaller(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 set) throws IOException
MarshallablewriteTo in interface Marshallable<T extends SortedSet<Object>>writeTo in class AbstractCollectionMarshaller<T extends SortedSet<Object>>writer - a ProtoStream writerset - the object to be writtenIOException - if the object could not be writtenCopyright © 2021 JBoss by Red Hat. All rights reserved.