Enum Class HostList

java.lang.Object
java.lang.Enum<HostList>
org.tasktide.core.manager.generator.HostList
All Implemented Interfaces:
Serializable, Comparable<HostList>, Constable

public enum HostList extends Enum<HostList>
Enum to hold values for various host names
  • Enum Constant Details

    • AMAZON

      public static final HostList AMAZON
    • GOOGLE

      public static final HostList GOOGLE
    • FACEBOOK

      public static final HostList FACEBOOK
    • RTE

      public static final HostList RTE
    • NETFLIX

      public static final HostList NETFLIX
    • YOUTUBE

      public static final HostList YOUTUBE
    • SPOTIFY

      public static final HostList SPOTIFY
    • BBC

      public static final HostList BBC
    • TWITTER

      public static final HostList TWITTER
    • INSTAGRAM

      public static final HostList INSTAGRAM
  • Method Details

    • values

      public static HostList[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static HostList valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getHost

      public String getHost()
      Print host as string
      Returns:
      String
    • getRandomHost

      public static String getRandomHost()
      Fetch random host
      Returns:
      String