shade.com.alibaba.fastjson2.function.FieldBiConsumer Maven / Gradle / Ivy
package com.alibaba.fastjson2.function;
import java.util.function.BiConsumer;
public final class FieldBiConsumer
implements BiConsumer {
public final int fieldIndex;
public final FieldConsumer consumer;
public FieldBiConsumer(int fieldIndex, FieldConsumer consumer) {
this.fieldIndex = fieldIndex;
this.consumer = consumer;
}
@Override
public void accept(T object, Object fieldValue) {
consumer.accept(object, fieldIndex, fieldValue);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy