java.lang.Object
com.aoapps.tlds.TopLevelDomain.Snapshot
- Enclosing class:
TopLevelDomain
One snapshot of the data, representing the state at one moment in time.
-
Method Summary
Modifier and TypeMethodDescriptiongetByLabel(String label) Provides a way to get the top level domain based on label (case-insensitive).Gets an unmodifiable list of the comments contained within tlds-alpha-by-domain.txt.longGets the last time the list was successfully updated.longGets the last time the list was updated, whether successful or not.booleanGets whether the last update was successful.Gets an unmodifiable list of the most recently retrieved top-level domains, in the case and order contained within tlds-alpha-by-domain.txt.booleanGets whether or not this is the bundled bootstrap data.
-
Method Details
-
getTopLevelDomains
Gets an unmodifiable list of the most recently retrieved top-level domains, in the case and order contained within tlds-alpha-by-domain.txt.Each element is
interned.- See Also:
-
getComments
Gets an unmodifiable list of the comments contained within tlds-alpha-by-domain.txt. All lines starting with"#"are considered to be comments.- See Also:
-
getLastUpdatedTime
public long getLastUpdatedTime()Gets the last time the list was updated, whether successful or not.- See Also:
-
isBootstrap
public boolean isBootstrap()Gets whether or not this is the bundled bootstrap data.- Returns:
trueif this is the included bootstrap data, orfalseis this is auto-updated- See Also:
-
getLastUpdateSuccessful
public boolean getLastUpdateSuccessful()Gets whether the last update was successful.- See Also:
-
getLastSuccessfulUpdateTime
public long getLastSuccessfulUpdateTime()Gets the last time the list was successfully updated.- See Also:
-
getByLabel
Provides a way to get the top level domain based on label (case-insensitive).Any non-null returned value is
interned.- Returns:
- The top level domain based on label (case-insensitive) or
nullif no match. - See Also:
-
