Enum Class BindingEnum

java.lang.Object
java.lang.Enum<BindingEnum>
com.iohao.net.framework.protocol.BindingEnum
All Implemented Interfaces:
Serializable, Comparable<BindingEnum>, Constable

public enum BindingEnum extends Enum<BindingEnum>
Dynamic Binding Enum for Logic Server
Author:
渔民小镇
date:
2023-06-07
  • Enum Constant Details

    • COVER

      public static final BindingEnum COVER
      Override the bound logic servers

      Example:

      Before overriding, if the player was already bound to logic server IDs [1-1];
      
      Now the player adds logic server IDs [2-2, 3-1];
      
      The player's bound logic server data at this time will be [2-2, 3-1], a total of 2 pieces of data, the new overrides the old;
      The currently set values will be used regardless of any previously bound data;
      
    • APPEND

      public static final BindingEnum APPEND
      Append to the bound logic servers

      Example:

      Before appending, if the player was already bound to logic server IDs [1-1];
      
      Now the player adds logic server IDs [2-2, 3-1];
      
      The player's bound logic server data at this time will be [1-1, 2-2, 3-1], a total of 3 pieces of data
      
    • REMOVE

      public static final BindingEnum REMOVE
      Remove the bound logic servers

      Example:

      Before removal, if the player was already bound to logic server IDs [1-1, 2-2, 3-1];
      
      Now the player adds [2-2, 3-1] as the logic server IDs to be removed;
      
      The player's bound logic server data at this time will be [1-1], a total of 1 piece of data, with 2 pieces of data removed;
      
    • CLEAR

      public static final BindingEnum CLEAR
      Clear all bound logic servers
  • Method Details

    • values

      public static BindingEnum[] 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 BindingEnum 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
    • ofValue

      public static BindingEnum ofValue(int value)