Enum Class TipsService.TipType

java.lang.Object
java.lang.Enum<TipsService.TipType>
org.ctan.site.services.site.TipsService.TipType
All Implemented Interfaces:
Serializable, Comparable<TipsService.TipType>, Constable
Enclosing class:
TipsService

public static enum TipsService.TipType extends Enum<TipsService.TipType>
The enumeration TipType contains the possible typed of tips which can be retrieved..
  • Enum Constant Details

  • Method Details

    • values

      public static TipsService.TipType[] 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 TipsService.TipType 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
    • of

      public static List<TipsService.TipType> of(String s)
      The method of provides means to translate a string into an array of tip types.
      Parameters:
      s - the string containing the letters for the tip type
      Returns:
      the array of the types
      Throws:
      IllegalArgumentException - in case the argument letter is not supported