Package client.dto.enums
Enum ProgrammeType
- java.lang.Object
-
- java.lang.Enum<ProgrammeType>
-
- client.dto.enums.ProgrammeType
-
- All Implemented Interfaces:
Serializable,Comparable<ProgrammeType>
public enum ProgrammeType extends Enum<ProgrammeType>
- Author:
- Tomáš Hamsa on 20.08.2017.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BACHELORDOCTORALINTERNSHIPLIFELONGMASTERMASTER_LEGACYUNDEFINED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoString()static ProgrammeTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ProgrammeType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BACHELOR
public static final ProgrammeType BACHELOR
-
DOCTORAL
public static final ProgrammeType DOCTORAL
-
INTERNSHIP
public static final ProgrammeType INTERNSHIP
-
LIFELONG
public static final ProgrammeType LIFELONG
-
MASTER
public static final ProgrammeType MASTER
-
MASTER_LEGACY
public static final ProgrammeType MASTER_LEGACY
-
UNDEFINED
public static final ProgrammeType UNDEFINED
-
-
Method Detail
-
values
public static ProgrammeType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ProgrammeType c : ProgrammeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProgrammeType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
toString
public String toString()
- Overrides:
toStringin classEnum<ProgrammeType>
-
-