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

hydraql.shaded.fastjson2.writer.FieldWriterInt8Func Maven / Gradle / Ivy

package hydraql.shaded.fastjson2.writer;

import java.lang.reflect.Method;
import java.util.function.Function;

final class FieldWriterInt8Func
        extends FieldWriterInt8 {
    final Function function;

    FieldWriterInt8Func(String fieldName, int ordinal, long features, String format, String label, Method method, Function function) {
        super(fieldName, ordinal, features, format, label, Byte.class, null, method);
        this.function = function;
    }

    @Override
    public Object getFieldValue(T object) {
        return function.apply(object);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy