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

jsonvalues.JsBigIntLens Maven / Gradle / Ivy

package jsonvalues;


import java.math.BigInteger;

/**
 Represent a Lens which focus is a biginteger number located at a path in a Json

 @param  the type of the whole part, an array or an object */
class JsBigIntLens> extends Lens {
    JsBigIntLens(final JsPath path) {
        super(json -> json.getBigInt(path),
              n -> json -> json.set(path,
                                    JsBigInt.of(n))
             );
    }
}