public enum TransmitPower extends java.lang.Enum<TransmitPower> implements java.io.Serializable
Enum Constant and Description |
---|
LEVEL0 |
LEVEL1 |
LEVEL10 |
LEVEL11 |
LEVEL2 |
LEVEL3 |
LEVEL4 |
LEVEL5 |
LEVEL6 |
LEVEL7 |
LEVEL8 |
LEVEL9 |
UNKNOWN
Unknown.
|
Modifier and Type | Method and Description |
---|---|
static TransmitPower |
getTransmitPower(int index) |
static java.lang.Integer |
getTransmitPowerValue(TransmitPower transmitPower,
java.lang.String model)
Get the real value of transmit power by model.
If the transmit power is
com.sensoro.beacon.kit.BaseSettings.TransmitPower#UNKNOWN or the value of model is invalid, it will return null. |
static java.lang.Boolean |
isMicroTX(TransmitPower transmitPower,
java.lang.String model)
Check whether the value of transmit power is micro by model.
If the transmit power is
UNKNOWN or the value of model is invalid, it will return null. |
static TransmitPower |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TransmitPower[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransmitPower LEVEL0
public static final TransmitPower LEVEL1
public static final TransmitPower LEVEL2
public static final TransmitPower LEVEL3
public static final TransmitPower LEVEL4
public static final TransmitPower LEVEL5
public static final TransmitPower LEVEL6
public static final TransmitPower LEVEL7
public static final TransmitPower LEVEL8
public static final TransmitPower LEVEL9
public static final TransmitPower LEVEL10
public static final TransmitPower LEVEL11
public static final TransmitPower UNKNOWN
public static TransmitPower[] values()
for (TransmitPower c : TransmitPower.values()) System.out.println(c);
public static TransmitPower valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static java.lang.Boolean isMicroTX(TransmitPower transmitPower, java.lang.String model)
UNKNOWN
or the value of model is invalid, it will return null.transmitPower
- model
- public static TransmitPower getTransmitPower(int index)
public static java.lang.Integer getTransmitPowerValue(TransmitPower transmitPower, java.lang.String model)
com.sensoro.beacon.kit.BaseSettings.TransmitPower#UNKNOWN
or the value of model is invalid, it will return null.transmitPower
- model
-