net.floodlightcontroller.devicemanager.internal
Class DeviceIterator
java.lang.Object
net.floodlightcontroller.util.FilterIterator<Device>
net.floodlightcontroller.devicemanager.internal.DeviceIterator
- All Implemented Interfaces:
- java.util.Iterator<Device>
public class DeviceIterator
- extends FilterIterator<Device>
An iterator for handling device queries
|
Constructor Summary |
DeviceIterator(java.util.Iterator<Device> subIterator,
IEntityClass[] entityClasses,
java.lang.Long macAddress,
java.lang.Short vlan,
java.lang.Integer ipv4Address,
java.lang.Long switchDPID,
java.lang.Integer switchPort)
Construct a new device iterator over the key fields |
|
Method Summary |
protected boolean |
matches(Device value)
Check whether the given value should be returned by the
filter |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeviceIterator
public DeviceIterator(java.util.Iterator<Device> subIterator,
IEntityClass[] entityClasses,
java.lang.Long macAddress,
java.lang.Short vlan,
java.lang.Integer ipv4Address,
java.lang.Long switchDPID,
java.lang.Integer switchPort)
- Construct a new device iterator over the key fields
- Parameters:
subIterator - an iterator over the full data structure to scanentityClasses - the entity classes to search formacAddress - The MAC addressvlan - the VLANipv4Address - the ipv4 addressswitchDPID - the switch DPIDswitchPort - the switch port
matches
protected boolean matches(Device value)
- Description copied from class:
FilterIterator
- Check whether the given value should be returned by the
filter
- Specified by:
matches in class FilterIterator<Device>
- Parameters:
value - the value to check
- Returns:
- true if the value should be included