Enum Class Constants.ValidType
- All Implemented Interfaces:
Serializable, Comparable<Constants.ValidType>, Constable
- Enclosing class:
Constants
Public enum that stores valid Types, includes getDisplayName, and valid type methods.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionArt related events (eg: Art Exhibition)Business related events (eg: Business Conference)Fitness related events (eg: Yoga Class)Community related events (eg: Town Hall Meeting)Culture related events (eg: Museum Visit)Discussion related events (eg: Book Club)Education related events (eg: Workshop)E-Sports related events (eg: Tournament)Festival related events (eg: Music Festival)Fitness related events (eg: Fitness Class)Food related events (eg: Cooking Class)Gaming related events (eg: Video Game Tournament)Hackathon events (eg: Coding Competition)Music related events (eg: Concert)Networking related events (eg: Casual Mixers )Photography related events (eg: Photo Walk)Reading related events (eg: Literary Discussion)Social related events (eg: Happy Hour)Startup related events (eg: Pitch Competition)Technology related events (eg: Tech Talk)Volunteering related events (eg: Community Service)Welfare related events (eg: Support Group) -
Method Summary
Modifier and TypeMethodDescriptionstatic Constants.ValidTypefromString(String input) Method of validating if a string is a validType by iterating through validType enumGetter for the displayName of a validTypestatic Constants.ValidTypeReturns the enum constant of this class with the specified name.static Constants.ValidType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ART
Art related events (eg: Art Exhibition) -
BUSINESS
Business related events (eg: Business Conference) -
CODING
Fitness related events (eg: Yoga Class) -
CULTURE
Culture related events (eg: Museum Visit) -
COMMUNITY
Community related events (eg: Town Hall Meeting) -
DISCUSSION
Discussion related events (eg: Book Club) -
EDUCATION
Education related events (eg: Workshop) -
ESPORTS
E-Sports related events (eg: Tournament) -
FESTIVAL
Festival related events (eg: Music Festival) -
FITNESS
Fitness related events (eg: Fitness Class) -
FOOD
Food related events (eg: Cooking Class) -
GAMING
Gaming related events (eg: Video Game Tournament) -
HACKATHON
Hackathon events (eg: Coding Competition) -
MUSIC
Music related events (eg: Concert) -
NETWORKING
Networking related events (eg: Casual Mixers ) -
PHOTOGRAPHY
Photography related events (eg: Photo Walk) -
READING
Reading related events (eg: Literary Discussion) -
SOCIAL
Social related events (eg: Happy Hour) -
STARTUP
Startup related events (eg: Pitch Competition) -
TECHNOLOGY
Technology related events (eg: Tech Talk) -
VOLUNTEERING
Volunteering related events (eg: Community Service) -
WELLNESS
Welfare related events (eg: Support Group)
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getDisplayName
Getter for the displayName of a validType- Returns:
- Returns a string displayName of the validType
-
fromString
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
-