Package com.avsystem.anjay
Enum Anjay.Lwm2mVersion
- java.lang.Object
-
- java.lang.Enum<Anjay.Lwm2mVersion>
-
- com.avsystem.anjay.Anjay.Lwm2mVersion
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Anjay.Lwm2mVersion>
- Enclosing class:
- Anjay
public static enum Anjay.Lwm2mVersion extends java.lang.Enum<Anjay.Lwm2mVersion>
Enum defining available LwM2M versions to use.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description VERSION_1_0Lightweight Machine to Machine Technical Specification, Approved Version 1.0.2 - 09 Feb 2018 (OMA-TS-LightweightM2M-V1_0_2-20180209-A).VERSION_1_1Lightweight Machine to Machine Technical Specification, Approved Version 1.1 - 2018-07-10; Core (OMA-TS-LightweightM2M_Core-V1_1-20180710-A) and Transport Bindings (OMA-TS-LightweightM2M_Transport-V1_1-20180710-A).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()static Anjay.Lwm2mVersionvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Anjay.Lwm2mVersion[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VERSION_1_0
public static final Anjay.Lwm2mVersion VERSION_1_0
Lightweight Machine to Machine Technical Specification, Approved Version 1.0.2 - 09 Feb 2018 (OMA-TS-LightweightM2M-V1_0_2-20180209-A).
-
VERSION_1_1
public static final Anjay.Lwm2mVersion VERSION_1_1
Lightweight Machine to Machine Technical Specification, Approved Version 1.1 - 2018-07-10; Core (OMA-TS-LightweightM2M_Core-V1_1-20180710-A) and Transport Bindings (OMA-TS-LightweightM2M_Transport-V1_1-20180710-A).
-
-
Method Detail
-
values
public static Anjay.Lwm2mVersion[] 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 (Anjay.Lwm2mVersion c : Anjay.Lwm2mVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Anjay.Lwm2mVersion 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
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<Anjay.Lwm2mVersion>
-
-