T - the type of this marshallerB - the builder type for reading embedded fieldspublic class FunctionalFieldSetMarshaller<T,B> extends Object implements ProtoStreamMarshaller<T>
FieldSetMarshaller.| Constructor and Description |
|---|
FunctionalFieldSetMarshaller(Class<? extends T> targetClass,
FieldSetMarshaller<T,B> marshaller,
Function<B,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 value)
Writes the specified object to the specified writer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypeName, read, writepublic T readFrom(ProtoStreamReader reader) throws IOException
MarshallablereadFrom in interface Marshallable<T>reader - a ProtoStream readerIOException - if the object could not be readpublic void writeTo(ProtoStreamWriter writer, T value) throws IOException
MarshallablewriteTo in interface Marshallable<T>writer - a ProtoStream writervalue - the object to be writtenIOException - if the object could not be writtenpublic Class<? extends T> getJavaClass()
MarshallablegetJavaClass in interface org.infinispan.protostream.BaseMarshaller<T>getJavaClass in interface Marshallable<T>Copyright © 2021 JBoss by Red Hat. All rights reserved.