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 DoubleSchemaDoubleSchema.between(double minimum, double maximum) Creates a DoubleSchema with both minimum and maximum constraints.static DoubleSchemaDoubleSchema.withMaximum(double maximum) Creates a DoubleSchema with a maximum constraint.static DoubleSchemaDoubleSchema.withMinimum(double minimum) Creates a DoubleSchema with a minimum constraint.Methods in jsonvalues.spec with parameters of type DoubleSchemaModifier and TypeMethodDescriptionstatic JsArraySpecJsSpecs.arrayOfDouble(DoubleSchema schema) non-nullable array of double numbers.static JsArraySpecJsSpecs.arrayOfDouble(DoubleSchema schema, ArraySchema arraySchema) non-nullable array of double numbers.static JsSpecJsSpecs.doubleNumber(DoubleSchema schema) non-nullable double number.static JsSpecJsSpecs.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.