Enum ApiPlatform
- java.lang.Object
-
- java.lang.Enum<ApiPlatform>
-
- com.thecoderscorner.menu.remote.protocol.ApiPlatform
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ApiPlatform>
public enum ApiPlatform extends java.lang.Enum<ApiPlatform>
Provides a list of the support platforms as an enumeration. Used during joining to indicate the platform of the connectee.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription()intgetKey()static ApiPlatformvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ApiPlatform[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ARDUINO
public static final ApiPlatform ARDUINO
-
ARDUINO32
public static final ApiPlatform ARDUINO32
-
JAVA_API
public static final ApiPlatform JAVA_API
-
DNET_API
public static final ApiPlatform DNET_API
-
-
Method Detail
-
values
public static ApiPlatform[] 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 (ApiPlatform c : ApiPlatform.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ApiPlatform 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
-
getKey
public int getKey()
-
getDescription
public java.lang.String getDescription()
-
-