Record Class AcceptedCountries.Country
java.lang.Object
java.lang.Record
com.yahoo.vespa.hosted.controller.api.integration.billing.AcceptedCountries.Country
- Enclosing class:
- AcceptedCountries
public static record AcceptedCountries.Country(String code, String displayName, boolean taxIdMandatory, List<AcceptedCountries.TaxType> taxTypes)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCountry(String code, String displayName, boolean taxIdMandatory, List<AcceptedCountries.TaxType> taxTypes) Creates an instance of aCountryrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.Returns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thetaxIdMandatoryrecord component.taxTypes()Returns the value of thetaxTypesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Country
public Country(String code, String displayName, boolean taxIdMandatory, List<AcceptedCountries.TaxType> taxTypes) Creates an instance of aCountryrecord class.- Parameters:
code- the value for thecoderecord componentdisplayName- the value for thedisplayNamerecord componenttaxIdMandatory- the value for thetaxIdMandatoryrecord componenttaxTypes- the value for thetaxTypesrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
code
Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
taxIdMandatory
public boolean taxIdMandatory()Returns the value of thetaxIdMandatoryrecord component.- Returns:
- the value of the
taxIdMandatoryrecord component
-
taxTypes
Returns the value of thetaxTypesrecord component.- Returns:
- the value of the
taxTypesrecord component
-