@Beta @GwtCompatible public enum PublicSuffixType extends Enum<PublicSuffixType>
InternetDomainName
.
Specifies the type of a top-level domain definition.
Enum Constant and Description |
---|
PRIVATE
Public suffix that is provided by a private company, e.g.
|
REGISTRY
Public suffix that is backed by an ICANN-style domain name registry
|
Modifier and Type | Method and Description |
---|---|
static PublicSuffixType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PublicSuffixType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PublicSuffixType PRIVATE
public static final PublicSuffixType REGISTRY
public static PublicSuffixType[] values()
for (PublicSuffixType c : PublicSuffixType.values()) System.out.println(c);
public static PublicSuffixType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2010–2019. All rights reserved.