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