public class SynchronizedDecoratorMarshaller<T> extends DecoratorMarshaller<T>
| Constructor and Description |
|---|
SynchronizedDecoratorMarshaller(Class<T> decoratedClass,
UnaryOperator<T> decorator,
T sample)
Constructs a decorator marshaller.
|
| Modifier and Type | Method and Description |
|---|---|
void |
writeTo(ProtoStreamWriter writer,
T value)
Writes the specified object to the specified writer.
|
getJavaClass, readFrom, runclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypeName, read, writepublic SynchronizedDecoratorMarshaller(Class<T> decoratedClass, UnaryOperator<T> decorator, T sample)
decoratedClass - the generalized type of the decorated objectdecorator - the decoration functionsample - a sample object used to determine the type of the decorated objectpublic void writeTo(ProtoStreamWriter writer, T value) throws IOException
MarshallablewriteTo in interface Marshallable<T>writeTo in class DecoratorMarshaller<T>writer - a ProtoStream writervalue - the object to be writtenIOException - if the object could not be writtenCopyright © 2022 JBoss by Red Hat. All rights reserved.