Package ej.ecom.wifi
Enum WifiCapability
- java.lang.Object
-
- java.lang.Enum<WifiCapability>
-
- ej.ecom.wifi.WifiCapability
-
- All Implemented Interfaces:
Serializable,Comparable<WifiCapability>
public enum WifiCapability extends Enum<WifiCapability>
List of possible capabilities for the underlying Wi-Fi module.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOTH_EXCLUSIVEThe Wi-Fi module can act as a client and as an access point but not at the same time.BOTH_SIMULTANEOUSThe Wi-Fi module can act as a client and as an access point at the same time.CLIENTIt is possible to join an existing wireless networks.SOFT_APIt is possible to create a new wireless network.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WifiCapabilityvalueOf(String name)Returns the enum constant of this type with the specified name.static WifiCapability[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOTH_EXCLUSIVE
public static final WifiCapability BOTH_EXCLUSIVE
The Wi-Fi module can act as a client and as an access point but not at the same time.
-
BOTH_SIMULTANEOUS
public static final WifiCapability BOTH_SIMULTANEOUS
The Wi-Fi module can act as a client and as an access point at the same time.
-
CLIENT
public static final WifiCapability CLIENT
It is possible to join an existing wireless networks. The Wi-Fi module acts as a client.
-
SOFT_AP
public static final WifiCapability SOFT_AP
It is possible to create a new wireless network. The Wi-Fi module acts as an access point.
-
-
Method Detail
-
values
public static WifiCapability[] 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 (WifiCapability c : WifiCapability.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WifiCapability valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-