Enum WebThumbnailState

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

    public enum WebThumbnailState
    extends java.lang.Enum<WebThumbnailState>
    Enumeration for the state of a web site thumbnail.
    Author:
    Christopher Mindus
    • Enum Constant Summary

      Enum Constants 
      Enum ConstantDescription
      DISPOSED
      The instance of the WebThumbnail is disposed of.
      ERROR
      Flag for error when loading the thumbnail, see more information at WebThumbnail#getException().
      INITIALIZING
      The state is initializing and no values are yet processed.
      PENDING
      Pending execution to load of the thumbnail.
      RETRIEVING
      The thumbnail is being retrieved.
      SUCCESS
      Success.
    • Method Summary

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

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

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

      • INITIALIZING

        public static final WebThumbnailState INITIALIZING
        The state is initializing and no values are yet processed.
      • PENDING

        public static final WebThumbnailState PENDING
        Pending execution to load of the thumbnail.
      • RETRIEVING

        public static final WebThumbnailState RETRIEVING
        The thumbnail is being retrieved.
      • ERROR

        public static final WebThumbnailState ERROR
        Flag for error when loading the thumbnail, see more information at WebThumbnail#getException().
      • DISPOSED

        public static final WebThumbnailState DISPOSED
        The instance of the WebThumbnail is disposed of.
    • Method Detail

      • values

        public static WebThumbnailState[] 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 (WebThumbnailState c : WebThumbnailState.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static WebThumbnailState 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