Enum Class AcademyType

java.lang.Object
java.lang.Enum<AcademyType>
mekhq.campaign.personnel.enums.education.AcademyType
All Implemented Interfaces:
Serializable, Comparable<AcademyType>, Constable

public enum AcademyType extends Enum<AcademyType>
  • Enum Constant Details

    • NONE

      public static final AcademyType NONE
    • HIGH_SCHOOL

      public static final AcademyType HIGH_SCHOOL
    • COLLEGE

      public static final AcademyType COLLEGE
    • UNIVERSITY

      public static final AcademyType UNIVERSITY
    • MILITARY_ACADEMY

      public static final AcademyType MILITARY_ACADEMY
    • BASIC_TRAINING

      public static final AcademyType BASIC_TRAINING
    • NCO_ACADEMY

      public static final AcademyType NCO_ACADEMY
    • WARRANT_OFFICER_ACADEMY

      public static final AcademyType WARRANT_OFFICER_ACADEMY
    • OFFICER_ACADEMY

      public static final AcademyType OFFICER_ACADEMY
  • Method Details

    • values

      public static AcademyType[] 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 AcademyType 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
    • getToolTipText

      public String getToolTipText()
    • IsNone

      @Deprecated(since="0.51.0", forRemoval=true) public boolean IsNone()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isHighSchool

      @Deprecated(since="0.51.0", forRemoval=true) public boolean isHighSchool()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isCollege

      public boolean isCollege()
    • isUniversity

      @Deprecated(since="0.51.0", forRemoval=true) public boolean isUniversity()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isMilitaryAcademy

      @Deprecated(since="0.51.0", forRemoval=true) public boolean isMilitaryAcademy()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isBasicTraining

      @Deprecated(since="0.51.0", forRemoval=true) public boolean isBasicTraining()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isNcoAcademy

      @Deprecated(since="0.51.0", forRemoval=true) public boolean isNcoAcademy()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isWarrantOfficerAcademy

      @Deprecated(since="0.51.0", forRemoval=true) public boolean isWarrantOfficerAcademy()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isOfficerAcademy

      @Deprecated(since="0.51.0", forRemoval=true) public boolean isOfficerAcademy()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • parseFromString

      public static AcademyType parseFromString(String academyType)
      Parses a given string and returns the corresponding AcademyType. Accepts either the ENUM ordinal value, or its name
      Parameters:
      academyType - the string to be parsed
      Returns:
      the AcademyType object that corresponds to the given string
      Throws:
      IllegalStateException - if the given string does not match any valid AcademyType
    • toString

      public String toString()
      Overrides:
      toString in class Enum<AcademyType>