Enum Class Category

java.lang.Object
java.lang.Enum<Category>
uz.khurozov.jokeapi.constant.Category
All Implemented Interfaces:
Serializable, Comparable<Category>, Constable

public enum Category extends Enum<Category>
  • Enum Constant Details

    • Any

      public static final Category Any
    • Misc

      public static final Category Misc
    • Programming

      public static final Category Programming
    • Dark

      public static final Category Dark
    • Pun

      public static final Category Pun
    • Spooky

      public static final Category Spooky
    • Christmas

      public static final Category Christmas
    • Miscellaneous

      public static final Category Miscellaneous
    • Coding

      public static final Category Coding
    • Development

      public static final Category Development
    • Halloween

      public static final Category Halloween
  • Method Details

    • values

      public static Category[] 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 Category 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