Enum Class PlatformEdition
- All Implemented Interfaces:
Serializable, Comparable<PlatformEdition>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic PlatformEditionstatic PlatformEditionget()Message template for warnings when a module is not available for a particular edition.static voidinit(PlatformEdition edition) static booleanisCloud()static booleanisEdge()static booleanisMaker()static booleantoString()static PlatformEditionReturns the enum constant of this class with the specified name.static PlatformEdition[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STANDARD
-
EDGE
-
MAKER
-
CLOUD
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getDisplayedName
-
getWarningMessageTemplate
Message template for warnings when a module is not available for a particular edition.
How to use:String.format(getWarningMessageTemplate(), moduleName). -
init
-
get
-
isStandard
public static boolean isStandard() -
isEdge
public static boolean isEdge() -
isMaker
public static boolean isMaker() -
isCloud
public static boolean isCloud() -
toString
- Overrides:
toStringin classEnum<PlatformEdition>
-
from
- Returns:
- the platform edition that matches the given string, or STANDARD if there is no match
-