Class Radios
- All Implemented Interfaces:
Serializable
,Cloneable
Represents the set of radios and their states on a device. Examples of radios include Wi-Fi, GPS, Bluetooth, and NFC.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
True if Bluetooth is enabled at the beginning of the test; otherwise, false.getGps()
True if GPS is enabled at the beginning of the test; otherwise, false.getNfc()
True if NFC is enabled at the beginning of the test; otherwise, false.getWifi()
True if Wi-Fi is enabled at the beginning of the test; otherwise, false.int
hashCode()
True if Bluetooth is enabled at the beginning of the test; otherwise, false.isGps()
True if GPS is enabled at the beginning of the test; otherwise, false.isNfc()
True if NFC is enabled at the beginning of the test; otherwise, false.isWifi()
True if Wi-Fi is enabled at the beginning of the test; otherwise, false.void
setBluetooth
(Boolean bluetooth) True if Bluetooth is enabled at the beginning of the test; otherwise, false.void
True if GPS is enabled at the beginning of the test; otherwise, false.void
True if NFC is enabled at the beginning of the test; otherwise, false.void
True if Wi-Fi is enabled at the beginning of the test; otherwise, false.toString()
Returns a string representation of this object; useful for testing and debugging.withBluetooth
(Boolean bluetooth) True if Bluetooth is enabled at the beginning of the test; otherwise, false.True if GPS is enabled at the beginning of the test; otherwise, false.True if NFC is enabled at the beginning of the test; otherwise, false.True if Wi-Fi is enabled at the beginning of the test; otherwise, false.
-
Constructor Details
-
Radios
public Radios()
-
-
Method Details
-
setWifi
True if Wi-Fi is enabled at the beginning of the test; otherwise, false.
- Parameters:
wifi
- True if Wi-Fi is enabled at the beginning of the test; otherwise, false.
-
getWifi
True if Wi-Fi is enabled at the beginning of the test; otherwise, false.
- Returns:
- True if Wi-Fi is enabled at the beginning of the test; otherwise, false.
-
withWifi
True if Wi-Fi is enabled at the beginning of the test; otherwise, false.
- Parameters:
wifi
- True if Wi-Fi is enabled at the beginning of the test; otherwise, false.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isWifi
True if Wi-Fi is enabled at the beginning of the test; otherwise, false.
- Returns:
- True if Wi-Fi is enabled at the beginning of the test; otherwise, false.
-
setBluetooth
True if Bluetooth is enabled at the beginning of the test; otherwise, false.
- Parameters:
bluetooth
- True if Bluetooth is enabled at the beginning of the test; otherwise, false.
-
getBluetooth
True if Bluetooth is enabled at the beginning of the test; otherwise, false.
- Returns:
- True if Bluetooth is enabled at the beginning of the test; otherwise, false.
-
withBluetooth
True if Bluetooth is enabled at the beginning of the test; otherwise, false.
- Parameters:
bluetooth
- True if Bluetooth is enabled at the beginning of the test; otherwise, false.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isBluetooth
True if Bluetooth is enabled at the beginning of the test; otherwise, false.
- Returns:
- True if Bluetooth is enabled at the beginning of the test; otherwise, false.
-
setNfc
True if NFC is enabled at the beginning of the test; otherwise, false.
- Parameters:
nfc
- True if NFC is enabled at the beginning of the test; otherwise, false.
-
getNfc
True if NFC is enabled at the beginning of the test; otherwise, false.
- Returns:
- True if NFC is enabled at the beginning of the test; otherwise, false.
-
withNfc
True if NFC is enabled at the beginning of the test; otherwise, false.
- Parameters:
nfc
- True if NFC is enabled at the beginning of the test; otherwise, false.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isNfc
True if NFC is enabled at the beginning of the test; otherwise, false.
- Returns:
- True if NFC is enabled at the beginning of the test; otherwise, false.
-
setGps
True if GPS is enabled at the beginning of the test; otherwise, false.
- Parameters:
gps
- True if GPS is enabled at the beginning of the test; otherwise, false.
-
getGps
True if GPS is enabled at the beginning of the test; otherwise, false.
- Returns:
- True if GPS is enabled at the beginning of the test; otherwise, false.
-
withGps
True if GPS is enabled at the beginning of the test; otherwise, false.
- Parameters:
gps
- True if GPS is enabled at the beginning of the test; otherwise, false.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isGps
True if GPS is enabled at the beginning of the test; otherwise, false.
- Returns:
- True if GPS is enabled at the beginning of the test; otherwise, false.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-