java.lang.Object
java.lang.Record
org.elasticsearch.web.RegisteredDomain.DomainInfo
- Enclosing class:
RegisteredDomain
-
Constructor Summary
ConstructorsConstructorDescriptionDomainInfo(String domain, String registeredDomain, String eTLD, String subdomain) Creates an instance of aDomainInforecord class. -
Method Summary
Modifier and TypeMethodDescriptiondomain()Returns the value of thedomainrecord component.final booleanIndicates whether some other object is "equal to" this one.eTLD()Returns the value of theeTLDrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theregisteredDomainrecord component.Returns the value of thesubdomainrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DomainInfo
Creates an instance of aDomainInforecord class.- Parameters:
domain- the value for thedomainrecord componentregisteredDomain- the value for theregisteredDomainrecord componenteTLD- the value for theeTLDrecord componentsubdomain- the value for thesubdomainrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
domain
Returns the value of thedomainrecord component.- Returns:
- the value of the
domainrecord component
-
registeredDomain
Returns the value of theregisteredDomainrecord component.- Returns:
- the value of the
registeredDomainrecord component
-
eTLD
Returns the value of theeTLDrecord component.- Returns:
- the value of the
eTLDrecord component
-
subdomain
Returns the value of thesubdomainrecord component.- Returns:
- the value of the
subdomainrecord component
-