Uses of Class
jsonvalues.spec.DoubleSchema
Packages that use DoubleSchema
Package
Description
The `jsonvalues.spec` package provides classes and interfaces for defining and working with JSON specifications
(specs) and parsers.
-
Uses of DoubleSchema in jsonvalues.spec
Methods in jsonvalues.spec that return DoubleSchemaModifier and TypeMethodDescriptionstatic DoubleSchema
DoubleSchema.between
(double minimum, double maximum) Creates a DoubleSchema with both minimum and maximum constraints.static DoubleSchema
DoubleSchema.withMaximum
(double maximum) Creates a DoubleSchema with a maximum constraint.static DoubleSchema
DoubleSchema.withMinimum
(double minimum) Creates a DoubleSchema with a minimum constraint.Methods in jsonvalues.spec with parameters of type DoubleSchemaModifier and TypeMethodDescriptionstatic JsArraySpec
JsSpecs.arrayOfDouble
(DoubleSchema schema) non-nullable array of double numbers.static JsArraySpec
JsSpecs.arrayOfDouble
(DoubleSchema schema, ArraySchema arraySchema) non-nullable array of double numbers.static JsSpec
JsSpecs.doubleNumber
(DoubleSchema schema) non-nullable double number.static JsSpec
JsSpecs.mapOfDouble
(DoubleSchema doubleSchema) Returns a specification that validates that the JSON is an object, and the value of each key is a double that satisfies the given schema.