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

xpertss.json.schema.keyword.digest.draftv4.MultipleOfDigester Maven / Gradle / Ivy

The newest version!
package xpertss.json.schema.keyword.digest.draftv4;

import com.fasterxml.jackson.databind.JsonNode;
import xpertss.json.schema.keyword.digest.Digester;
import xpertss.json.schema.keyword.digest.helpers.NumericDigester;

/**
 * Digester for {@code multipleOf}
 *
 * @see NumericDigester
 */
public final class MultipleOfDigester extends NumericDigester {

    private static final Digester INSTANCE = new MultipleOfDigester();

    public static Digester getInstance()
    {
        return INSTANCE;
    }

    private MultipleOfDigester()
    {
        super("multipleOf");
    }

    @Override
    public JsonNode digest(JsonNode schema)
    {
        return digestedNumberNode(schema);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy