Record Class Money
java.lang.Object
java.lang.Record
io.micronaut.jsonschema.generator.ref.Money
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull floatAmount()Returns the value of theAmountrecord component.@NotNull StringCurrency()Returns the value of theCurrencyrecord 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.
-
Constructor Details
-
Money
Creates an instance of aMoneyrecord class.- Parameters:
Amount- the value for theAmountrecord componentCurrency- the value for theCurrencyrecord 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. -
Amount
@NotNull public @NotNull float Amount()Returns the value of theAmountrecord component.- Returns:
- the value of the
Amountrecord component
-
Currency
Returns the value of theCurrencyrecord component.- Returns:
- the value of the
Currencyrecord component
-