Record Class CountryDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.locale.CountryDTO
- Record Components:
code- country codeisoCode- ISO 3166-1 alpha-3 country codelabel- display labelphoneCode- international phone codecurrency- defaultCurrencyDTO
-
Constructor Summary
ConstructorsConstructorDescriptionCountryDTO(String code, String isoCode, String label, String phoneCode, CurrencyDTO currency) Creates an instance of aCountryDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.currency()Returns the value of thecurrencyrecord component.final booleanIndicates whether some other object is "equal to" this one.static CountryDTOConverts aCountryto aCountryDTO.final inthashCode()Returns a hash code value for this object.isoCode()Returns the value of theisoCoderecord component.label()Returns the value of thelabelrecord component.Returns the value of thephoneCoderecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CountryDTO
public CountryDTO(String code, String isoCode, String label, String phoneCode, CurrencyDTO currency) Creates an instance of aCountryDTOrecord class.
-
-
Method Details
-
from
Converts aCountryto aCountryDTO.- Parameters:
country-Country- Returns:
CountryDTO
-
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
-
phoneCode
-
currency
-