Uses of Class
jsonvalues.spec.InstantSchema
Packages that use InstantSchema
Package
Description
The `jsonvalues.spec` package provides classes and interfaces for defining and working with JSON specifications
(specs) and parsers.
-
Uses of InstantSchema in jsonvalues.spec
Methods in jsonvalues.spec that return InstantSchemaModifier and TypeMethodDescriptionstatic InstantSchema
Creates an InstantSchema with both minimum and maximum constraints.static InstantSchema
InstantSchema.withMaximum
(Instant maximum) Creates an InstantSchema with a maximum constraint.static InstantSchema
InstantSchema.withMinimum
(Instant minimum) Creates an InstantSchema with a minimum constraint.Methods in jsonvalues.spec with parameters of type InstantSchemaModifier and TypeMethodDescriptionstatic JsSpec
JsSpecs.instant
(InstantSchema schema) Returns a specification for a non-nullable JSON instant that satisfies the given schema.static JsSpec
JsSpecs.mapOfInstant
(InstantSchema instantSchema) Returns a specification that validates that the JSON is an object, and the value of each key is an instant that satifies the given schema.