Top Description Fields Constructors Methods
com.google.thirdparty.publicsuffix

public final Enum PublicSuffixType

extends Enum<PublicSuffixType>
Class Inheritance
Annotations
@Beta
@GwtCompatible
Imports
com.google.common.annotations.Beta, .GwtCompatible

Do not use this class directly. For access to public-suffix information, use com.google.common.net.InternetDomainName.

Specifies the type of a top-level domain definition.

Since
23.3

Field Summary

Modifier and TypeField and Description
private final char
innerNodeCode

The character used for an inner node in the trie encoding

private final char
leafNodeCode

The character used for a leaf node in the trie encoding

public static final PublicSuffixType
PRIVATE

Public suffix that is provided by a private company, e.g. "blogspot.com"

public static final PublicSuffixType
REGISTRY

Public suffix that is backed by an ICANN-style domain name registry

Constructor Summary

AccessConstructor and Description
private
PublicSuffixType(char innerNodeCode, char leafNodeCode)

Method Summary

Modifier and TypeMethod and Description
pack-priv static PublicSuffixType
fromCode(char code)

Returns a PublicSuffixType of the right type according to the given code

pack-priv char
pack-priv char
public static PublicSuffixType
public static PublicSuffixType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

innerNodeCodeback to summary
private final char innerNodeCode

The character used for an inner node in the trie encoding

leafNodeCodeback to summary
private final char leafNodeCode

The character used for a leaf node in the trie encoding

PRIVATEback to summary
public static final PublicSuffixType PRIVATE

Public suffix that is provided by a private company, e.g. "blogspot.com"

REGISTRYback to summary
public static final PublicSuffixType REGISTRY

Public suffix that is backed by an ICANN-style domain name registry

Constructor Detail

PublicSuffixTypeback to summary
private PublicSuffixType(char innerNodeCode, char leafNodeCode)

Method Detail

fromCodeback to summary
pack-priv static PublicSuffixType fromCode(char code)

Returns a PublicSuffixType of the right type according to the given code

getInnerNodeCodeback to summary
pack-priv char getInnerNodeCode()
getLeafNodeCodeback to summary
pack-priv char getLeafNodeCode()
valueOfback to summary
public static PublicSuffixType valueOf(String name)
valuesback to summary
public static PublicSuffixType[] values()