Record Class TaxId
java.lang.Object
java.lang.Record
com.yahoo.vespa.hosted.controller.tenant.TaxId
- Author:
- olaa
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionTaxId(TaxId.Country country, TaxId.Type type, TaxId.Code code) Creates an instance of aTaxIdrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.country()Returns the value of thecountryrecord component.static TaxIdempty()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisEmpty()booleanisLegacy()static TaxIdfinal StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
TaxId
-
TaxId
Creates an instance of aTaxIdrecord class.- Parameters:
country- the value for thecountryrecord componenttype- the value for thetyperecord componentcode- the value for thecoderecord component
-
-
Method Details
-
empty
-
isEmpty
public boolean isEmpty() -
legacy
-
isLegacy
public boolean isLegacy() -
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. All components in this record class are compared withObjects::equals(Object,Object). -
country
Returns the value of thecountryrecord component.- Returns:
- the value of the
countryrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
code
Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-