All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.wildfly.clustering.marshalling.protostream.reflect.BinaryFieldMarshaller Maven / Gradle / Ivy

/*
 * Copyright The WildFly Authors
 * SPDX-License-Identifier: Apache-2.0
 */

package org.wildfly.clustering.marshalling.protostream.reflect;

import java.lang.reflect.Field;
import java.util.function.BiFunction;

/**
 * Generic marshaller based on two non-public fields.
 * @param  the target type of this marshaller
 * @param  the first component field type
 * @param  the second component field type
 * @author Paul Ferraro
 */
public class BinaryFieldMarshaller extends BinaryMemberMarshaller {

	public BinaryFieldMarshaller(Class type, Class field1Type, Class field2Type, BiFunction factory) {
		super(type, Reflect::getValue, Reflect::findField, field1Type, field2Type, factory);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy