Record Class NullableBean
java.lang.Object
java.lang.Record
io.micronaut.serde.yaml.tck.NullableBean
- Record Components:
required- The required valueoptional- The optional value
-
Constructor Summary
ConstructorsConstructorDescriptionNullableBean(String required, @Nullable String optional) Creates an instance of aNullableBeanrecord 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.@Nullable Stringoptional()Returns the value of theoptionalrecord component.required()Returns the value of therequiredrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NullableBean
-
-
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). -
required
-
optional
-