Enum NewsItemAction

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<NewsItemAction>

    public enum NewsItemAction
    extends java.lang.Enum<NewsItemAction>
    • Enum Constant Detail

      • ON_SERVER_STARTED

        public static final NewsItemAction ON_SERVER_STARTED
      • ON_OPERATOR_JOIN

        public static final NewsItemAction ON_OPERATOR_JOIN
      • BROADCAST_TO_CONSOLE

        public static final NewsItemAction BROADCAST_TO_CONSOLE
      • BROADCAST_TO_OPERATORS

        public static final NewsItemAction BROADCAST_TO_OPERATORS
    • Method Detail

      • values

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

        public static NewsItemAction valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getByName

        public static NewsItemAction getByName​(java.lang.String actionName)