Package edu.ntnu.idatt1002.k1g4.enums
Enum Class MatchType
- All Implemented Interfaces:
Serializable
,Comparable<MatchType>
,Constable
The enum Match type.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMenn senior match type.Menn under 16 match type.Menn under 18 match type.Menn under 21 match type.Menn under 23 match type.Other match type.Women senior match type.Women under 16 match type.Women under 18 match type.Women under 21 match type.Women under 23 match type. -
Method Summary
Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
MennU16
Menn under 16 match type. -
MennU18
Menn under 18 match type. -
MennU21
Menn under 21 match type. -
MennU23
Menn under 23 match type. -
MennSenior
Menn senior match type. -
WomenU16
Women under 16 match type. -
WomenU18
Women under 18 match type. -
WomenU21
Women under 21 match type. -
WomenU23
Women under 23 match type. -
WomenSenior
Women senior match type. -
Other
Other match type.
-
-
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
-