public class Radios
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents the set of radios and their states on a device. Examples of radios include Wi-Fi, GPS, Bluetooth, and NFC.
Modifier and Type | Field and Description |
---|---|
private java.lang.Boolean |
bluetooth
True if Bluetooth is enabled at the beginning of the test; otherwise,
false.
|
private java.lang.Boolean |
gps
True if GPS is enabled at the beginning of the test; otherwise, false.
|
private java.lang.Boolean |
nfc
True if NFC is enabled at the beginning of the test; otherwise, false.
|
private java.lang.Boolean |
wifi
True if Wi-Fi is enabled at the beginning of the test; otherwise, false.
|
Constructor and Description |
---|
Radios() |
Modifier and Type | Method and Description |
---|---|
Radios |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getBluetooth()
True if Bluetooth is enabled at the beginning of the test; otherwise,
false.
|
java.lang.Boolean |
getGps()
True if GPS is enabled at the beginning of the test; otherwise, false.
|
java.lang.Boolean |
getNfc()
True if NFC is enabled at the beginning of the test; otherwise, false.
|
java.lang.Boolean |
getWifi()
True if Wi-Fi is enabled at the beginning of the test; otherwise, false.
|
int |
hashCode() |
java.lang.Boolean |
isBluetooth()
True if Bluetooth is enabled at the beginning of the test; otherwise,
false.
|
java.lang.Boolean |
isGps()
True if GPS is enabled at the beginning of the test; otherwise, false.
|
java.lang.Boolean |
isNfc()
True if NFC is enabled at the beginning of the test; otherwise, false.
|
java.lang.Boolean |
isWifi()
True if Wi-Fi is enabled at the beginning of the test; otherwise, false.
|
void |
setBluetooth(java.lang.Boolean bluetooth)
True if Bluetooth is enabled at the beginning of the test; otherwise,
false.
|
void |
setGps(java.lang.Boolean gps)
True if GPS is enabled at the beginning of the test; otherwise, false.
|
void |
setNfc(java.lang.Boolean nfc)
True if NFC is enabled at the beginning of the test; otherwise, false.
|
void |
setWifi(java.lang.Boolean wifi)
True if Wi-Fi is enabled at the beginning of the test; otherwise, false.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Radios |
withBluetooth(java.lang.Boolean bluetooth)
True if Bluetooth is enabled at the beginning of the test; otherwise,
false.
|
Radios |
withGps(java.lang.Boolean gps)
True if GPS is enabled at the beginning of the test; otherwise, false.
|
Radios |
withNfc(java.lang.Boolean nfc)
True if NFC is enabled at the beginning of the test; otherwise, false.
|
Radios |
withWifi(java.lang.Boolean wifi)
True if Wi-Fi is enabled at the beginning of the test; otherwise, false.
|
private java.lang.Boolean wifi
True if Wi-Fi is enabled at the beginning of the test; otherwise, false.
private java.lang.Boolean bluetooth
True if Bluetooth is enabled at the beginning of the test; otherwise, false.
private java.lang.Boolean nfc
True if NFC is enabled at the beginning of the test; otherwise, false.
private java.lang.Boolean gps
True if GPS is enabled at the beginning of the test; otherwise, false.
public void setWifi(java.lang.Boolean wifi)
True if Wi-Fi is enabled at the beginning of the test; otherwise, false.
wifi
- True if Wi-Fi is enabled at the beginning of the test; otherwise,
false.public java.lang.Boolean getWifi()
True if Wi-Fi is enabled at the beginning of the test; otherwise, false.
public Radios withWifi(java.lang.Boolean wifi)
True if Wi-Fi is enabled at the beginning of the test; otherwise, false.
wifi
- True if Wi-Fi is enabled at the beginning of the test; otherwise,
false.public java.lang.Boolean isWifi()
True if Wi-Fi is enabled at the beginning of the test; otherwise, false.
public void setBluetooth(java.lang.Boolean bluetooth)
True if Bluetooth is enabled at the beginning of the test; otherwise, false.
bluetooth
- True if Bluetooth is enabled at the beginning of the test;
otherwise, false.public java.lang.Boolean getBluetooth()
True if Bluetooth is enabled at the beginning of the test; otherwise, false.
public Radios withBluetooth(java.lang.Boolean bluetooth)
True if Bluetooth is enabled at the beginning of the test; otherwise, false.
bluetooth
- True if Bluetooth is enabled at the beginning of the test;
otherwise, false.public java.lang.Boolean isBluetooth()
True if Bluetooth is enabled at the beginning of the test; otherwise, false.
public void setNfc(java.lang.Boolean nfc)
True if NFC is enabled at the beginning of the test; otherwise, false.
nfc
- True if NFC is enabled at the beginning of the test; otherwise,
false.public java.lang.Boolean getNfc()
True if NFC is enabled at the beginning of the test; otherwise, false.
public Radios withNfc(java.lang.Boolean nfc)
True if NFC is enabled at the beginning of the test; otherwise, false.
nfc
- True if NFC is enabled at the beginning of the test; otherwise,
false.public java.lang.Boolean isNfc()
True if NFC is enabled at the beginning of the test; otherwise, false.
public void setGps(java.lang.Boolean gps)
True if GPS is enabled at the beginning of the test; otherwise, false.
gps
- True if GPS is enabled at the beginning of the test; otherwise,
false.public java.lang.Boolean getGps()
True if GPS is enabled at the beginning of the test; otherwise, false.
public Radios withGps(java.lang.Boolean gps)
True if GPS is enabled at the beginning of the test; otherwise, false.
gps
- True if GPS is enabled at the beginning of the test; otherwise,
false.public java.lang.Boolean isGps()
True if GPS is enabled at the beginning of the test; otherwise, false.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Radios clone()
clone
in class java.lang.Object