Uses of Class
jsonvalues.spec.ArraySchema
Packages that use ArraySchema
Package
Description
The `jsonvalues.spec` package provides classes and interfaces for defining and working with JSON specifications
(specs) and parsers.
-
Uses of ArraySchema in jsonvalues.spec
Methods in jsonvalues.spec that return ArraySchemaModifier and TypeMethodDescriptionArraySchema.setUniqueItems()
Sets the uniqueItems constraint for the array.static ArraySchema
ArraySchema.sizeBetween
(int minItems, int maxItems) Creates an ArraySchema with both minimum and maximum size constraints.static ArraySchema
ArraySchema.withMaxSize
(int maxItems) Creates an ArraySchema with a maximum size constraint.static ArraySchema
ArraySchema.withMinSize
(int minItems) Creates an ArraySchema with a minimum size constraint.Methods in jsonvalues.spec with parameters of type ArraySchemaModifier and TypeMethodDescriptionstatic JsArraySpec
JsSpecs.arrayOfBigInt
(Predicate<BigInteger> predicate, ArraySchema arraySchema) Returns a specification for a non-nullable array of integral numbers, where each element of the array satisfies the given predicate.static JsArraySpec
JsSpecs.arrayOfBigInt
(ArraySchema arraySchema) non-nullable array of big integer numbers.static JsArraySpec
JsSpecs.arrayOfBigInt
(BigIntSchema schema, ArraySchema arraySchema) non-nullable array of big integer numbers.static JsArraySpec
JsSpecs.arrayOfBool
(ArraySchema schema) Returns a specification for an array of booleans with a specified minimum and maximum length.static JsArraySpec
JsSpecs.arrayOfDec
(Predicate<BigDecimal> predicate, ArraySchema arraySchema) Returns a specification for a non-nullable array of decimal numbers, where each element of the array satisfies the given predicate.static JsArraySpec
JsSpecs.arrayOfDec
(ArraySchema arraySchema) non-nullable array of big decimal numbers.static JsArraySpec
JsSpecs.arrayOfDec
(DecimalSchema schema, ArraySchema arraySchema) static JsArraySpec
JsSpecs.arrayOfDouble
(DoublePredicate predicate, ArraySchema arraySchema) non-nullable array of decimal numbers.static JsArraySpec
JsSpecs.arrayOfDouble
(ArraySchema arraySchema) non-nullable array of double numbers.static JsArraySpec
JsSpecs.arrayOfDouble
(DoubleSchema schema, ArraySchema arraySchema) non-nullable array of double numbers.static JsArraySpec
JsSpecs.arrayOfInt
(IntPredicate predicate, ArraySchema arraySchema) Returns a specification for a non-nullable array of integer numbers, where each element of the array satisfies the given predicate.static JsArraySpec
JsSpecs.arrayOfInt
(ArraySchema schema) non-nullable array of integer numbers.static JsArraySpec
JsSpecs.arrayOfInt
(IntegerSchema schema, ArraySchema arraySchema) non-nullable array of integer numbers.static JsArraySpec
JsSpecs.arrayOfLong
(LongPredicate predicate, ArraySchema schema) Returns a specification for a non-nullable array of long numbers, where each element of the array satisfies the given predicate.static JsArraySpec
JsSpecs.arrayOfLong
(ArraySchema schema) Returns a specification for an array of long numbers with a specified minimum and maximum length.static JsArraySpec
JsSpecs.arrayOfLong
(LongSchema schema, ArraySchema arraySchema) non-nullable array of long numbers.static JsArraySpec
JsSpecs.arrayOfObj
(Predicate<JsObj> predicate, ArraySchema arraySchema) Returns a specification for a non-nullable array of objects, where each element of the array satisfies the given predicate.static JsArraySpec
JsSpecs.arrayOfObj
(ArraySchema arraySchema) non-nullable array of objects.static JsArraySpec
JsSpecs.arrayOfSpec
(JsSpec spec, ArraySchema arraySchema) Returns a specification that validates that the JSON is an array, and the value of each element is a value that conforms the given spec.static JsArraySpec
JsSpecs.arrayOfStr
(Predicate<String> predicate, ArraySchema arraySchema) Returns a specification for a non-nullable array of strings, where each element of the array satisfies the given predicate.static JsArraySpec
JsSpecs.arrayOfStr
(ArraySchema arraySchema) Returns a specification for an array of strings with a specified minimum and maximum length.static JsArraySpec
JsSpecs.arrayOfStr
(StrSchema elemSchema, ArraySchema arraySchema) Returns a specification for an array of strings with a specified minimum and maximum length, and each element conforming to the given element schema.