Enum Class Constants.ValidType

java.lang.Object
java.lang.Enum<Constants.ValidType>
theLocalLoop.Constants.ValidType
All Implemented Interfaces:
Serializable, Comparable<Constants.ValidType>, Constable
Enclosing class:
Constants

public static enum Constants.ValidType extends Enum<Constants.ValidType>
Public enum that stores valid Types, includes getDisplayName, and valid type methods.
  • Enum Constant Details

    • ART

      public static final Constants.ValidType ART
      Art related events (eg: Art Exhibition)
    • BUSINESS

      public static final Constants.ValidType BUSINESS
      Business related events (eg: Business Conference)
    • CODING

      public static final Constants.ValidType CODING
      Fitness related events (eg: Yoga Class)
    • CULTURE

      public static final Constants.ValidType CULTURE
      Culture related events (eg: Museum Visit)
    • COMMUNITY

      public static final Constants.ValidType COMMUNITY
      Community related events (eg: Town Hall Meeting)
    • DISCUSSION

      public static final Constants.ValidType DISCUSSION
      Discussion related events (eg: Book Club)
    • EDUCATION

      public static final Constants.ValidType EDUCATION
      Education related events (eg: Workshop)
    • ESPORTS

      public static final Constants.ValidType ESPORTS
      E-Sports related events (eg: Tournament)
    • FESTIVAL

      public static final Constants.ValidType FESTIVAL
      Festival related events (eg: Music Festival)
    • FITNESS

      public static final Constants.ValidType FITNESS
      Fitness related events (eg: Fitness Class)
    • FOOD

      public static final Constants.ValidType FOOD
      Food related events (eg: Cooking Class)
    • GAMING

      public static final Constants.ValidType GAMING
      Gaming related events (eg: Video Game Tournament)
    • HACKATHON

      public static final Constants.ValidType HACKATHON
      Hackathon events (eg: Coding Competition)
    • MUSIC

      public static final Constants.ValidType MUSIC
      Music related events (eg: Concert)
    • NETWORKING

      public static final Constants.ValidType NETWORKING
      Networking related events (eg: Casual Mixers )
    • PHOTOGRAPHY

      public static final Constants.ValidType PHOTOGRAPHY
      Photography related events (eg: Photo Walk)
    • READING

      public static final Constants.ValidType READING
      Reading related events (eg: Literary Discussion)
    • SOCIAL

      public static final Constants.ValidType SOCIAL
      Social related events (eg: Happy Hour)
    • STARTUP

      public static final Constants.ValidType STARTUP
      Startup related events (eg: Pitch Competition)
    • TECHNOLOGY

      public static final Constants.ValidType TECHNOLOGY
      Technology related events (eg: Tech Talk)
    • VOLUNTEERING

      public static final Constants.ValidType VOLUNTEERING
      Volunteering related events (eg: Community Service)
    • WELLNESS

      public static final Constants.ValidType WELLNESS
      Welfare related events (eg: Support Group)
  • Method Details

    • values

      public static Constants.ValidType[] 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 Constants.ValidType 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
    • getDisplayName

      public String getDisplayName()
      Getter for the displayName of a validType
      Returns:
      Returns a string displayName of the validType
    • fromString

      public static Constants.ValidType fromString(String input)
      Method of validating if a string is a validType by iterating through validType enum
      Parameters:
      input - String to compare to validTypes
      Returns:
      Returns the type if it is valid, otherwise throws an exception