Package ej.ecom.wifi
Enum WPSMode
- java.lang.Object
-
- java.lang.Enum<WPSMode>
-
- ej.ecom.wifi.WPSMode
-
- All Implemented Interfaces:
Serializable,Comparable<WPSMode>
public enum WPSMode extends Enum<WPSMode>
List of Wi-Fi Protected Setup (WPS) modes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NFCNear Field Communication (NFC) method.NONENo method.PINPersonal Identification Number (PIN) method.PushButtonPush button method.USBUSB method.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WPSModevalueOf(String name)Returns the enum constant of this type with the specified name.static WPSMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NFC
public static final WPSMode NFC
Near Field Communication (NFC) method.
-
NONE
public static final WPSMode NONE
No method.
-
PIN
public static final WPSMode PIN
Personal Identification Number (PIN) method.
-
PushButton
public static final WPSMode PushButton
Push button method.
-
USB
public static final WPSMode USB
USB method.
-
-
Method Detail
-
values
public static WPSMode[] 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 (WPSMode c : WPSMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WPSMode 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
-
-