Package org.geysermc.floodgate.news
Enum NewsItemMessage
- java.lang.Object
-
- java.lang.Enum<NewsItemMessage>
-
- org.geysermc.floodgate.news.NewsItemMessage
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<NewsItemMessage>
public enum NewsItemMessage extends java.lang.Enum<NewsItemMessage>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DOWNTIME_GENERICDOWNTIME_TIMEFRAMEDOWNTIME_WITH_STARTUPDATE_ANCIENT_VERSIONUPDATE_AVAILABLEUPDATE_HIGHLY_RECOMMENDEDUPDATE_RECOMMENDED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @Nullable NewsItemMessagegetById(int id)java.lang.StringgetFormattedMessage(com.google.gson.JsonArray serverArguments)java.lang.StringgetMessageFormat()java.lang.StringtoString()static NewsItemMessagevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static NewsItemMessage[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UPDATE_AVAILABLE
public static final NewsItemMessage UPDATE_AVAILABLE
-
UPDATE_RECOMMENDED
public static final NewsItemMessage UPDATE_RECOMMENDED
-
UPDATE_HIGHLY_RECOMMENDED
public static final NewsItemMessage UPDATE_HIGHLY_RECOMMENDED
-
UPDATE_ANCIENT_VERSION
public static final NewsItemMessage UPDATE_ANCIENT_VERSION
-
DOWNTIME_GENERIC
public static final NewsItemMessage DOWNTIME_GENERIC
-
DOWNTIME_WITH_START
public static final NewsItemMessage DOWNTIME_WITH_START
-
DOWNTIME_TIMEFRAME
public static final NewsItemMessage DOWNTIME_TIMEFRAME
-
-
Method Detail
-
values
public static NewsItemMessage[] 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 (NewsItemMessage c : NewsItemMessage.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NewsItemMessage 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
-
getById
public static @Nullable NewsItemMessage getById(int id)
-
getMessageFormat
public java.lang.String getMessageFormat()
-
getFormattedMessage
public java.lang.String getFormattedMessage(com.google.gson.JsonArray serverArguments)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<NewsItemMessage>
-
-