Record Class NullableTravelAvailability
java.lang.Object
java.lang.Record
io.micronaut.jsonschema.generator.ref.NullableTravelAvailability
public record NullableTravelAvailability(@NotNull Frequency Frequency, @NotNull NullableTravelAvailability.Reach Reach)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionNullableTravelAvailability(@NotNull Frequency Frequency, @NotNull NullableTravelAvailability.Reach Reach) Creates an instance of aNullableTravelAvailabilityrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@NotNull FrequencyReturns the value of theFrequencyrecord component.final inthashCode()Returns a hash code value for this object.@NotNull NullableTravelAvailability.ReachReach()Returns the value of theReachrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NullableTravelAvailability
public NullableTravelAvailability(@NotNull @NotNull Frequency Frequency, @NotNull @NotNull NullableTravelAvailability.Reach Reach) Creates an instance of aNullableTravelAvailabilityrecord class.- Parameters:
Frequency- the value for theFrequencyrecord componentReach- the value for theReachrecord 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). -
Frequency
Returns the value of theFrequencyrecord component.- Returns:
- the value of the
Frequencyrecord component
-
Reach
Returns the value of theReachrecord component.- Returns:
- the value of the
Reachrecord component
-