Enum Class MovieGoerAge

Object
Enum<MovieGoerAge>
MovieGoerAge
All Implemented Interfaces:
Serializable, Comparable<MovieGoerAge>, Constable

public enum MovieGoerAge extends Enum<MovieGoerAge>
Enumeration class for the Movie Goer Age
Version:
1.0
Author:
Jerick, Yeek Sheng
  • Enum Constant Details

    • Adult

      public static final MovieGoerAge Adult
      Adult age group
    • SeniorCitizen

      public static final MovieGoerAge SeniorCitizen
      Senior citizen age group
    • Student

      public static final MovieGoerAge Student
      Student age group
    • Child

      public static final MovieGoerAge Child
      Child age group
  • Method Details

    • values

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