@GwtCompatible enum PublicSuffixType extends java.lang.Enum<PublicSuffixType>
Enum Constant and Description |
---|
ICANN
ICANN definition of a top-level domain
|
PRIVATE
private definition of a top-level domain
|
Modifier and Type | Field and Description |
---|---|
private char |
innerNodeCode
The character used for an inner node in the trie encoding
|
private char |
leafNodeCode
The character used for a leaf node in the trie encoding
|
Modifier and Type | Method and Description |
---|---|
(package private) static PublicSuffixType |
fromCode(char code)
Returns a PublicSuffixType of the right type according to the given code
|
(package private) static PublicSuffixType |
fromIsPrivate(boolean isPrivate) |
(package private) char |
getInnerNodeCode() |
(package private) char |
getLeafNodeCode() |
static PublicSuffixType |
valueOf(java.lang.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 ICANN
private final char innerNodeCode
private final char leafNodeCode
public static PublicSuffixType[] values()
for (PublicSuffixType c : PublicSuffixType.values()) System.out.println(c);
public static PublicSuffixType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullchar getLeafNodeCode()
char getInnerNodeCode()
static PublicSuffixType fromCode(char code)
static PublicSuffixType fromIsPrivate(boolean isPrivate)