Class TernaryFieldMarshaller<T,F1,F2,F3>
java.lang.Object
org.wildfly.clustering.marshalling.protostream.reflect.AbstractMemberMarshaller<T,Field>
org.wildfly.clustering.marshalling.protostream.reflect.TernaryMemberMarshaller<T,Field,F1,F2,F3>
org.wildfly.clustering.marshalling.protostream.reflect.TernaryFieldMarshaller<T,F1,F2,F3>
- Type Parameters:
T- the target type of this marshallerF1- the first component field typeF2- the second component field typeF3- the third component field type
- All Implemented Interfaces:
Function<Object[],T>, org.infinispan.protostream.BaseMarshaller<T>, org.infinispan.protostream.ProtobufTagMarshaller<T>, Marshallable<T>, ProtoStreamMarshaller<T>, Readable<T>, Writable<T>
Generic marshaller based on three non-public fields.
- Author:
- Paul Ferraro
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.infinispan.protostream.ProtobufTagMarshaller
org.infinispan.protostream.ProtobufTagMarshaller.OperationContext, org.infinispan.protostream.ProtobufTagMarshaller.ReadContext, org.infinispan.protostream.ProtobufTagMarshaller.WriteContext -
Field Summary
Fields inherited from interface org.infinispan.protostream.BaseMarshaller
EMPTY -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class TernaryMemberMarshaller
applyMethods inherited from class AbstractMemberMarshaller
getJavaClass, readFrom, writeToMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.protostream.BaseMarshaller
getSubClassNamesMethods inherited from interface Marshallable
sizeMethods inherited from interface ProtoStreamMarshaller
getTypeName, read, wrap, wrap, write
-
Constructor Details
-
TernaryFieldMarshaller
public TernaryFieldMarshaller(Class<? extends T> type, Class<F1> field1Type, Class<F2> field2Type, Class<F3> field3Type, TriFunction<F1, F2, F3, T> factory) Creates a marshaller for the specified fields.- Parameters:
type- the marshalled object typefield1Type- the former field typefield2Type- the latter field typefield3Type- the latter field typefactory- the object factory
-