Class BinaryMethodMarshaller<T,M1,M2>

Type Parameters:
T - the target type of this marshaller
M1 - the first component accessor method return type
M2 - the second component accessor method return 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 BinaryMethodMarshaller<T,M1,M2> extends BinaryMemberMarshaller<T,Method,M1,M2>
Generic marshaller based on two non-public accessor methods.
Author:
Paul Ferraro
  • Constructor Details

    • BinaryMethodMarshaller

      public BinaryMethodMarshaller(Class<? extends T> type, Class<M1> member1Type, Class<M2> member2Type, BiFunction<M1,M2,T> factory)
      Creates a marshaller for the specified methods.
      Parameters:
      type - the marshalled object type
      member1Type - the former member type
      member2Type - the latter member type
      factory - the marshalled object factory