Enum Class StarValue

java.lang.Object
java.lang.Enum<StarValue>
one.suhas.rmc.utils.StarValue
All Implemented Interfaces:
Serializable, Comparable<StarValue>, Constable

public enum StarValue extends Enum<StarValue>
An enum used for class ratings on a scale of 1-5
  • Enum Constant Details

    • OneStar

      public static final StarValue OneStar
    • TwoStars

      public static final StarValue TwoStars
    • ThreeStars

      public static final StarValue ThreeStars
    • FourStars

      public static final StarValue FourStars
    • FiveStars

      public static final StarValue FiveStars
  • Method Details

    • values

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