Package src.enums

Enum Class InternshipLevel

java.lang.Object
java.lang.Enum<InternshipLevel>
src.enums.InternshipLevel
All Implemented Interfaces:
Serializable, Comparable<InternshipLevel>, Constable

public enum InternshipLevel extends Enum<InternshipLevel>
The InternshipLevel enum is used as an attribute to InternshipOpportunity.
  • Enum Constant Details

    • BASIC

      public static final InternshipLevel BASIC
      The lowest internship level
    • INTERMEDIATE

      public static final InternshipLevel INTERMEDIATE
      The middle internship level
    • ADVANCED

      public static final InternshipLevel ADVANCED
      The highest internship level
  • Field Details

    • levelValue

      private final int levelValue
  • Constructor Details

    • InternshipLevel

      private InternshipLevel(int levelValue)
  • Method Details

    • values

      public static InternshipLevel[] 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 InternshipLevel 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
    • getLevelValue

      public int getLevelValue()
      Getter for levelValue
      Returns:
      levelValue
    • greaterThanOrEqualTo

      public boolean greaterThanOrEqualTo(InternshipLevel other)
      Compares the levelValue of an InternshipLevel to another.
      Parameters:
      other - The InternshipLevel instance to compare against.
      Returns:
      true if the levelValue is greater than or equal to other's levelValue. false otherwise.