Record Class NullableSalary
java.lang.Object
java.lang.Record
io.micronaut.jsonschema.generator.ref.NullableSalary
-
Constructor Summary
ConstructorsConstructorDescriptionNullableSalary(@NotNull Money Money, @Pattern(regexp="[pP]?\\s*(\\d+[yY])?\\s*(\\d+[wW])?\\s*(\\d+[dD])?") String Period, boolean Gross) Creates an instance of aNullableSalaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanGross()Returns the value of theGrossrecord component.final inthashCode()Returns a hash code value for this object.@NotNull MoneyMoney()Returns the value of theMoneyrecord component.@Pattern(regexp="[pP]?\\s*(\\d+[yY])?\\s*(\\d+[wW])?\\s*(\\d+[dD])?") StringPeriod()Returns the value of thePeriodrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NullableSalary
public NullableSalary(@NotNull @NotNull Money Money, @Pattern(regexp="[pP]?\\s*(\\d+[yY])?\\s*(\\d+[wW])?\\s*(\\d+[dD])?") @Pattern(regexp="[pP]?\\s*(\\d+[yY])?\\s*(\\d+[wW])?\\s*(\\d+[dD])?") String Period, boolean Gross) Creates an instance of aNullableSalaryrecord class.- Parameters:
Money- the value for theMoneyrecord componentPeriod- the value for thePeriodrecord componentGross- the value for theGrossrecord 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. -
Money
Returns the value of theMoneyrecord component.- Returns:
- the value of the
Moneyrecord component
-
Period
@Pattern(regexp="[pP]?\\s*(\\d+[yY])?\\s*(\\d+[wW])?\\s*(\\d+[dD])?") public @Pattern(regexp="[pP]?\\s*(\\d+[yY])?\\s*(\\d+[wW])?\\s*(\\d+[dD])?") String Period()Returns the value of thePeriodrecord component.- Returns:
- the value of the
Periodrecord component
-
Gross
public boolean Gross()Returns the value of theGrossrecord component.- Returns:
- the value of the
Grossrecord component
-