Record Class CSDNSRecordNameType.CSDNSRecordNameRelative
java.lang.Object
java.lang.Record
com.io7m.certusine.api.CSDNSRecordNameType.CSDNSRecordNameRelative
- Record Components:
name- The name
- All Implemented Interfaces:
CSDNSRecordNameType
- Enclosing interface:
CSDNSRecordNameType
public static record CSDNSRecordNameType.CSDNSRecordNameRelative(String name)
extends Record
implements CSDNSRecordNameType
A relative record name (does not end with '.').
-
Nested Class Summary
Nested classes/interfaces inherited from interface CSDNSRecordNameType
CSDNSRecordNameType.CSDNSRecordNameAbsolute, CSDNSRecordNameType.CSDNSRecordNameRelative -
Constructor Summary
ConstructorsConstructorDescriptionA relative record name (does not end with '.'). -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.stripDomainSuffix(String domain) Strip a domain suffix from this name.toString()Returns a string representation of this record class.
-
Constructor Details
-
CSDNSRecordNameRelative
A relative record name (does not end with '.').- Parameters:
name- The name
-
-
Method Details
-
toString
-
stripDomainSuffix
Description copied from interface:CSDNSRecordNameTypeStrip a domain suffix from this name.- Specified by:
stripDomainSuffixin interfaceCSDNSRecordNameType- Parameters:
domain- The domain- Returns:
- This name as a relative name
-
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). -
name
Returns the value of thenamerecord component.- Specified by:
namein interfaceCSDNSRecordNameType- Returns:
- the value of the
namerecord component
-