Package src.enums
Enum Class InternshipLevel
- All Implemented Interfaces:
Serializable,Comparable<InternshipLevel>,Constable
The
InternshipLevel enum is used as an attribute to InternshipOpportunity.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe highest internship levelThe lowest internship levelThe middle internship level -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGetter forlevelValuebooleanCompares thelevelValueof anInternshipLevelto another.static InternshipLevelReturns the enum constant of this class with the specified name.static InternshipLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BASIC
The lowest internship level -
INTERMEDIATE
The middle internship level -
ADVANCED
The highest internship level
-
-
Field Details
-
levelValue
private final int levelValue
-
-
Constructor Details
-
InternshipLevel
private InternshipLevel(int levelValue)
-
-
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
-
getLevelValue
public int getLevelValue()Getter forlevelValue- Returns:
levelValue
-
greaterThanOrEqualTo
Compares thelevelValueof anInternshipLevelto another.- Parameters:
other- TheInternshipLevelinstance to compare against.- Returns:
trueif thelevelValueis greater than or equal toother'slevelValue.falseotherwise.
-