
jsonvalues.JsDecimalLens Maven / Gradle / Ivy
package jsonvalues;
import java.math.BigDecimal;
/**
Represent a Lens which focus is a decimal number located at a path in a Json
@param the type of the whole part, an array or an object */
class JsDecimalLens> extends Lens {
JsDecimalLens(final JsPath path) {
super(json -> json.getBigDec(path),
n -> json -> json.set(path,
JsBigDec.of(n))
);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy