If labels
is a collection of valid labels or a single string with embedded label separators then
return an instance other return None.
If labels
is a collection of valid labels or a single string with embedded label separators then
return an instance other return None.
Examples of valid labels
- "www", "scalacraft", "com"
- "www.scalacraft", "com"
- "www.scalacraft.com"
Examples of invalid labels
- "www.", "$calacraft", "com-"
- ""
A sequence of domain name parts or a single string with embedded periods.
A valid instance of DomainName
or None
if any constraint was violated.
Provide direct access to the labels of a domain name.
Provide direct access to the labels of a domain name.
The instance to use
The domain name labels
Provide a string representation for an instance of this class.
Provide a string representation for an instance of this class.
The instance to use
A domain name as a string