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

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

package hydraql.shaded.fastjson2.writer;

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

final class FieldWriterBooleanFunc
        extends FieldWriterBoolean {
    final Function function;

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy