Record Class CurrencyDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.locale.CurrencyDTO
- Record Components:
code- currency codeisoCode- ISO 4217 currency codelabel- display labelsymbol- currency symbol
-
Constructor Summary
ConstructorsConstructorDescriptionCurrencyDTO(String code, String isoCode, String label, String symbol) Creates an instance of aCurrencyDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.final booleanIndicates whether some other object is "equal to" this one.static CurrencyDTOConverts aCurrencyto aCurrencyDTO.final inthashCode()Returns a hash code value for this object.isoCode()Returns the value of theisoCoderecord component.label()Returns the value of thelabelrecord component.symbol()Returns the value of thesymbolrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
from
Converts aCurrencyto aCurrencyDTO.- Parameters:
currency-Currency- Returns:
CurrencyDTO
-
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). -
code
-
isoCode
-
label
-
symbol
-