net.floodlightcontroller.devicemanager.internal
Class DeviceManagerImpl.AttachmentPointComparator

java.lang.Object
  extended by net.floodlightcontroller.devicemanager.internal.DeviceManagerImpl.AttachmentPointComparator
All Implemented Interfaces:
java.util.Comparator<AttachmentPoint>
Enclosing class:
DeviceManagerImpl

protected class DeviceManagerImpl.AttachmentPointComparator
extends java.lang.Object
implements java.util.Comparator<AttachmentPoint>

AttachmentPointComparator Compares two attachment points and returns the latest one. It is assumed that the two attachment points are in the same L2 domain.

Author:
srini

Constructor Summary
DeviceManagerImpl.AttachmentPointComparator()
           
 
Method Summary
 int compare(AttachmentPoint oldAP, AttachmentPoint newAP)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

DeviceManagerImpl.AttachmentPointComparator

public DeviceManagerImpl.AttachmentPointComparator()
Method Detail

compare

public int compare(AttachmentPoint oldAP,
                   AttachmentPoint newAP)
Specified by:
compare in interface java.util.Comparator<AttachmentPoint>