Record Class NullableNoticePeriod
java.lang.Object
java.lang.Record
io.micronaut.jsonschema.generator.ref.NullableNoticePeriod
public record NullableNoticePeriod(@NotNull float Days, @NotNull boolean workingDays)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionNullableNoticePeriod(@NotNull float Days, @NotNull boolean workingDays) Creates an instance of aNullableNoticePeriodrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull floatDays()Returns the value of theDaysrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.@NotNull booleanReturns the value of theworkingDaysrecord component.
-
Constructor Details
-
NullableNoticePeriod
public NullableNoticePeriod(@NotNull @NotNull float Days, @NotNull @NotNull boolean workingDays) Creates an instance of aNullableNoticePeriodrecord class.- Parameters:
Days- the value for theDaysrecord componentworkingDays- the value for theworkingDaysrecord 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 with thecomparemethod from their corresponding wrapper classes. -
Days
@NotNull public @NotNull float Days()Returns the value of theDaysrecord component.- Returns:
- the value of the
Daysrecord component
-
workingDays
@NotNull public @NotNull boolean workingDays()Returns the value of theworkingDaysrecord component.- Returns:
- the value of the
workingDaysrecord component
-