Enum BoostLevel

    • Enum Constant Detail

      • NONE

        public static final BoostLevel NONE
        Server has no boost level.
      • TIER_1

        public static final BoostLevel TIER_1
        Server Boost level 1.
      • TIER_2

        public static final BoostLevel TIER_2
        Server Boost level 2.
      • TIER_3

        public static final BoostLevel TIER_3
        Server Boost level 3.
      • UNKNOWN

        public static final BoostLevel UNKNOWN
        An unknown boost level, most likely due to new added boost levels.
    • Method Detail

      • values

        public static BoostLevel[] 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 (BoostLevel c : BoostLevel.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static BoostLevel 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 name
        NullPointerException - if the argument is null
      • getId

        public int getId​()
        Gets the id of the boost level.
        Returns:
        The id of the boost level.
      • fromId

        public static BoostLevel fromId​(int id)
        Gets the boost level by its id.
        Parameters:
        id - The id of the boost level.
        Returns:
        The boost level with the given id.