public final class BleDeviceIterator extends java.lang.Object implements java.util.Iterator<BleDevice>
Iterator
for BleDevice
instances, returned from BleManager.getDevices()
and its overloads.Constructor and Description |
---|
BleDeviceIterator(java.util.List<BleDevice> all) |
BleDeviceIterator(java.util.List<BleDevice> all,
int mask) |
BleDeviceIterator(java.util.List<BleDevice> all,
java.lang.Object... query) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
BleDevice |
next() |
void |
remove()
Calls
BleManager.undiscover(BleDevice) , removing it from the BleManager singleton's internal list. |
public BleDeviceIterator(java.util.List<BleDevice> all)
public BleDeviceIterator(java.util.List<BleDevice> all, int mask)
public BleDeviceIterator(java.util.List<BleDevice> all, java.lang.Object... query)
public boolean hasNext()
hasNext
in interface java.util.Iterator<BleDevice>
public void remove()
BleManager.undiscover(BleDevice)
, removing it from the BleManager
singleton's internal list.remove
in interface java.util.Iterator<BleDevice>