
jsonvalues.JsInstantLens Maven / Gradle / Ivy
package jsonvalues;
import java.time.Instant;
/**
Represent a Lens which focus is an Instant located at a path in a Json
@param the type of the whole part, an array or an object */
public class JsInstantLens> extends Lens {
JsInstantLens(final JsPath path) {
super(json -> json.getInstant(path),
o -> json -> json.set(path,
JsInstant.of(o))
);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy