Enum LinkValidity

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<LinkValidity>

    public enum LinkValidity
    extends java.lang.Enum<LinkValidity>
    LinkValidity defines the state of a link in respect to its validity.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      EXPIRED
      internal link has expired (i.e.
      INVALID
      internal or external link is invalid
      PENDING
      external link is pending (not (re)checked yet)
      PREDATED
      internal link is predated (i.e.
      VALID
      internal or external link is valid
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static LinkValidity valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static LinkValidity[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • VALID

        public static final LinkValidity VALID
        internal or external link is valid
      • INVALID

        public static final LinkValidity INVALID
        internal or external link is invalid
      • EXPIRED

        public static final LinkValidity EXPIRED
        internal link has expired (i.e. offTime in past)
      • PREDATED

        public static final LinkValidity PREDATED
        internal link is predated (i.e. onTime in future)
      • PENDING

        public static final LinkValidity PENDING
        external link is pending (not (re)checked yet)
    • Method Detail

      • values

        public static LinkValidity[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (LinkValidity c : LinkValidity.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static LinkValidity valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null