Record Class Disability
java.lang.Object
java.lang.Record
io.micronaut.jsonschema.generator.ref.Disability
- Record Components:
Level- Disability degree. Value must be between 1.0 (fully disabled) and 0
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDisability(@NotNull Disability.Type Type, Float Level, String Summary) Creates an instance of aDisabilityrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Level()Returns the value of theLevelrecord component.Summary()Returns the value of theSummaryrecord component.final StringtoString()Returns a string representation of this record class.@NotNull Disability.TypeType()Returns the value of theTyperecord component.
-
Constructor Details
-
Disability
Creates an instance of aDisabilityrecord class.- Parameters:
Type- the value for theTyperecord componentLevel- the value for theLevelrecord componentSummary- the value for theSummaryrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
Type
Returns the value of theTyperecord component.- Returns:
- the value of the
Typerecord component
-
Level
-
Summary
Returns the value of theSummaryrecord component.- Returns:
- the value of the
Summaryrecord component
-