Record Class SchemaUtils.RequiredMode
java.lang.Object
java.lang.Record
io.micronaut.openapi.visitor.SchemaUtils.RequiredMode
- Enclosing class:
SchemaUtils
-
Constructor Summary
ConstructorsConstructorDescriptionRequiredMode(Boolean elementSchemaRequired, boolean isAutoRequiredMode, boolean isRequiredDefaultValueSet) Creates an instance of aRequiredModerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theelementSchemaRequiredrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisAutoRequiredModerecord component.booleanReturns the value of theisRequiredDefaultValueSetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RequiredMode
public RequiredMode(Boolean elementSchemaRequired, boolean isAutoRequiredMode, boolean isRequiredDefaultValueSet) Creates an instance of aRequiredModerecord class.- Parameters:
elementSchemaRequired- the value for theelementSchemaRequiredrecord componentisAutoRequiredMode- the value for theisAutoRequiredModerecord componentisRequiredDefaultValueSet- the value for theisRequiredDefaultValueSetrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
elementSchemaRequired
Returns the value of theelementSchemaRequiredrecord component.- Returns:
- the value of the
elementSchemaRequiredrecord component
-
isAutoRequiredMode
public boolean isAutoRequiredMode()Returns the value of theisAutoRequiredModerecord component.- Returns:
- the value of the
isAutoRequiredModerecord component
-
isRequiredDefaultValueSet
public boolean isRequiredDefaultValueSet()Returns the value of theisRequiredDefaultValueSetrecord component.- Returns:
- the value of the
isRequiredDefaultValueSetrecord component
-