Package net.sf.freecol.common.networking
Enum Message.MessagePriority
- java.lang.Object
-
- java.lang.Enum<Message.MessagePriority>
-
- net.sf.freecol.common.networking.Message.MessagePriority
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Message.MessagePriority>
- Enclosing class:
- Message
public static enum Message.MessagePriority extends java.lang.Enum<Message.MessagePriority>
-
-
Field Summary
Fields Modifier and Type Field Description private int
level
-
Constructor Summary
Constructors Modifier Constructor Description private
MessagePriority(int level)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
static Message.MessagePriority
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Message.MessagePriority[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ATTRIBUTE
public static final Message.MessagePriority ATTRIBUTE
-
ANIMATION
public static final Message.MessagePriority ANIMATION
-
REMOVE
public static final Message.MessagePriority REMOVE
-
ADDPLAYER
public static final Message.MessagePriority ADDPLAYER
-
STANCE
public static final Message.MessagePriority STANCE
-
OWNED
public static final Message.MessagePriority OWNED
-
PARTIAL
public static final Message.MessagePriority PARTIAL
-
UPDATE
public static final Message.MessagePriority UPDATE
-
EARLY
public static final Message.MessagePriority EARLY
-
NORMAL
public static final Message.MessagePriority NORMAL
-
LATE
public static final Message.MessagePriority LATE
-
LAST
public static final Message.MessagePriority LAST
-
-
Method Detail
-
values
public static Message.MessagePriority[] 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 (Message.MessagePriority c : Message.MessagePriority.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Message.MessagePriority 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 namejava.lang.NullPointerException
- if the argument is null
-
getValue
public int getValue()
-
-