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

jsonvalues.JsLongLens Maven / Gradle / Ivy

package jsonvalues;

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

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