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 ArraySchemaArraySchema.sizeBetween(int minItems, int maxItems) Creates an ArraySchema with both minimum and maximum size constraints.static ArraySchemaArraySchema.withMaxSize(int maxItems) Creates an ArraySchema with a maximum size constraint.static ArraySchemaArraySchema.withMinSize(int minItems) Creates an ArraySchema with a minimum size constraint.Methods in jsonvalues.spec with parameters of type ArraySchemaModifier and TypeMethodDescriptionstatic JsArraySpecJsSpecs.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 JsArraySpecJsSpecs.arrayOfBigInt(ArraySchema arraySchema) non-nullable array of big integer numbers.static JsArraySpecJsSpecs.arrayOfBigInt(BigIntSchema schema, ArraySchema arraySchema) non-nullable array of big integer numbers.static JsArraySpecJsSpecs.arrayOfBool(ArraySchema schema) Returns a specification for an array of booleans with a specified minimum and maximum length.static JsArraySpecJsSpecs.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 JsArraySpecJsSpecs.arrayOfDec(ArraySchema arraySchema) non-nullable array of big decimal numbers.static JsArraySpecJsSpecs.arrayOfDec(DecimalSchema schema, ArraySchema arraySchema) static JsArraySpecJsSpecs.arrayOfDouble(DoublePredicate predicate, ArraySchema arraySchema) non-nullable array of decimal numbers.static JsArraySpecJsSpecs.arrayOfDouble(ArraySchema arraySchema) non-nullable array of double numbers.static JsArraySpecJsSpecs.arrayOfDouble(DoubleSchema schema, ArraySchema arraySchema) non-nullable array of double numbers.static JsArraySpecJsSpecs.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 JsArraySpecJsSpecs.arrayOfInt(ArraySchema schema) non-nullable array of integer numbers.static JsArraySpecJsSpecs.arrayOfInt(IntegerSchema schema, ArraySchema arraySchema) non-nullable array of integer numbers.static JsArraySpecJsSpecs.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 JsArraySpecJsSpecs.arrayOfLong(ArraySchema schema) Returns a specification for an array of long numbers with a specified minimum and maximum length.static JsArraySpecJsSpecs.arrayOfLong(LongSchema schema, ArraySchema arraySchema) non-nullable array of long numbers.static JsArraySpecJsSpecs.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 JsArraySpecJsSpecs.arrayOfObj(ArraySchema arraySchema) non-nullable array of objects.static JsArraySpecJsSpecs.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 JsArraySpecJsSpecs.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 JsArraySpecJsSpecs.arrayOfStr(ArraySchema arraySchema) Returns a specification for an array of strings with a specified minimum and maximum length.static JsArraySpecJsSpecs.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.