Enum Class UpgradeReason

java.lang.Object
java.lang.Enum<UpgradeReason>
org.deltava.beans.econ.UpgradeReason
All Implemented Interfaces:
Serializable, Comparable<UpgradeReason>, Constable, ComboAlias, EnumDescription

public enum UpgradeReason extends Enum<UpgradeReason> implements EnumDescription
An enumeration to store final Elite status upgrade criteria. If an Elite status requires multiple criteria for an upgrade, this records the last criteria to be fulfilled.
Since:
9.2
Version:
11.0
Author:
Luke
  • Enum Constant Details

  • Method Details

    • values

      public static UpgradeReason[] 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 UpgradeReason 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
    • isRollover

      public boolean isRollover()
      Returns if this reason is a rollover of the previous year's status.
      Returns:
      TRUE if a Rollover or Downgrade, otherwise FALSE