Class Expiration


  • public final class Expiration
    extends java.lang.Object
    Expiration details that indicate whether a given package is out of date.

    Expiration details can indicate that the package in question:

    Since:
    100.5.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Calendar getDateTime()
      Gets a Calendar object that has the date and time when the package will expire.
      java.lang.String getMessage()
      Gets an accompanying message which provides contextual information when the package has expired.
      ExpirationType getType()
      Gets the type of expiration for the given package.
      boolean isExpired()
      Gets whether the current package has expired.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getDateTime

        public java.util.Calendar getDateTime()
        Gets a Calendar object that has the date and time when the package will expire.
        Returns:
        a Calendar object that has the date and time of the expiration
        Since:
        100.5.0
      • getMessage

        public java.lang.String getMessage()
        Gets an accompanying message which provides contextual information when the package has expired.

        The message could indicate the reasons for expiration or where an up-to-date version of the data can be obtained from. The author of the package may have configured the message to contain raw text, hyperlinks or HTML.

        Returns:
        the message that provides information when the package has expired
        Since:
        100.5.0
      • isExpired

        public boolean isExpired()
        Gets whether the current package has expired.
        Returns:
        a boolean value that represents whether the package has expired
        Since:
        100.5.0