Record Class Constraints
java.lang.Object
java.lang.Record
com.arc_e_tect.gradle.apionly.transcriberj.model.Constraints
- Record Components:
minLength-minLengthmaxLength-maxLengthpattern-patternminimum-minimummaximum-maximumexclusiveMinimum-exclusiveMinimum: a number in OpenAPI 3.1, a boolean in 3.0exclusiveMaximum-exclusiveMaximum: a number in OpenAPI 3.1, a boolean in 3.0multipleOf-multipleOfminItems-minItemsmaxItems-maxItemsuniqueItems-uniqueItemsminProperties-minPropertiesmaxProperties-maxProperties
public record Constraints(Number minLength, Number maxLength, String pattern, Number minimum, Number maximum, Object exclusiveMinimum, Object exclusiveMaximum, Number multipleOf, Number minItems, Number maxItems, Boolean uniqueItems, Number minProperties, Number maxProperties)
extends Record
A schema's validation keywords. Each is
null when the schema does not
declare it; numbers are as parsed.-
Constructor Summary
ConstructorsConstructorDescriptionConstraints(Number minLength, Number maxLength, String pattern, Number minimum, Number maximum, Object exclusiveMinimum, Object exclusiveMaximum, Number multipleOf, Number minItems, Number maxItems, Boolean uniqueItems, Number minProperties, Number maxProperties) Creates an instance of aConstraintsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexclusiveMaximumrecord component.Returns the value of theexclusiveMinimumrecord component.final inthashCode()Returns a hash code value for this object.maximum()Returns the value of themaximumrecord component.maxItems()Returns the value of themaxItemsrecord component.Returns the value of themaxLengthrecord component.Returns the value of themaxPropertiesrecord component.minimum()Returns the value of theminimumrecord component.minItems()Returns the value of theminItemsrecord component.Returns the value of theminLengthrecord component.Returns the value of theminPropertiesrecord component.Returns the value of themultipleOfrecord component.pattern()Returns the value of thepatternrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuniqueItemsrecord component.
-
Constructor Details
-
Constraints
public Constraints(Number minLength, Number maxLength, String pattern, Number minimum, Number maximum, Object exclusiveMinimum, Object exclusiveMaximum, Number multipleOf, Number minItems, Number maxItems, Boolean uniqueItems, Number minProperties, Number maxProperties) Creates an instance of aConstraintsrecord class.- Parameters:
minLength- the value for theminLengthrecord componentmaxLength- the value for themaxLengthrecord componentpattern- the value for thepatternrecord componentminimum- the value for theminimumrecord componentmaximum- the value for themaximumrecord componentexclusiveMinimum- the value for theexclusiveMinimumrecord componentexclusiveMaximum- the value for theexclusiveMaximumrecord componentmultipleOf- the value for themultipleOfrecord componentminItems- the value for theminItemsrecord componentmaxItems- the value for themaxItemsrecord componentuniqueItems- the value for theuniqueItemsrecord componentminProperties- the value for theminPropertiesrecord componentmaxProperties- the value for themaxPropertiesrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
minLength
Returns the value of theminLengthrecord component.- Returns:
- the value of the
minLengthrecord component
-
maxLength
Returns the value of themaxLengthrecord component.- Returns:
- the value of the
maxLengthrecord component
-
pattern
Returns the value of thepatternrecord component.- Returns:
- the value of the
patternrecord component
-
minimum
Returns the value of theminimumrecord component.- Returns:
- the value of the
minimumrecord component
-
maximum
Returns the value of themaximumrecord component.- Returns:
- the value of the
maximumrecord component
-
exclusiveMinimum
Returns the value of theexclusiveMinimumrecord component.- Returns:
- the value of the
exclusiveMinimumrecord component
-
exclusiveMaximum
Returns the value of theexclusiveMaximumrecord component.- Returns:
- the value of the
exclusiveMaximumrecord component
-
multipleOf
Returns the value of themultipleOfrecord component.- Returns:
- the value of the
multipleOfrecord component
-
minItems
Returns the value of theminItemsrecord component.- Returns:
- the value of the
minItemsrecord component
-
maxItems
Returns the value of themaxItemsrecord component.- Returns:
- the value of the
maxItemsrecord component
-
uniqueItems
Returns the value of theuniqueItemsrecord component.- Returns:
- the value of the
uniqueItemsrecord component
-
minProperties
Returns the value of theminPropertiesrecord component.- Returns:
- the value of the
minPropertiesrecord component
-
maxProperties
Returns the value of themaxPropertiesrecord component.- Returns:
- the value of the
maxPropertiesrecord component
-