net.floodlightcontroller.devicemanager.internal
Class DeviceIterator
java.lang.Object
   net.floodlightcontroller.util.FilterIterator<Device>
net.floodlightcontroller.util.FilterIterator<Device>
       net.floodlightcontroller.devicemanager.internal.DeviceIterator
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 scan
- entityClasses- the entity classes to search for
- macAddress- The MAC address
- vlan- the VLAN
- ipv4Address- the ipv4 address
- switchDPID- the switch DPID
- switchPort- 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:
- matchesin class- FilterIterator<Device>
 
- 
- Parameters:
- value- the value to check
- Returns:
- true if the value should be included