Class BinaryFieldMarshaller<T,F1,F2>

Type Parameters:
T - the target type of this marshaller
F1 - the first component field type
F2 - the second 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>

public class BinaryFieldMarshaller<T,F1,F2> extends BinaryMemberMarshaller<T,Field,F1,F2>
Generic marshaller based on two non-public fields.
Author:
Paul Ferraro
  • Constructor Details

    • BinaryFieldMarshaller

      public BinaryFieldMarshaller(Class<? extends T> type, Class<F1> field1Type, Class<F2> field2Type, BiFunction<F1,F2,T> factory)
      Creates a marshaller for the specified fields.
      Parameters:
      type - the marshalled object type
      field1Type - the former field type
      field2Type - the latter field type
      factory - the object factory