|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opennms.netmgt.discovery.DiscoveredIPMgr.AddrComparator
This class implements the Comparator
interface and provides the infomation required for a Tree to be sorted.
This implementation only works with objects of type
InetAddress
.
Field Summary | |
(package private) static DiscoveredIPMgr.AddrComparator |
comparator
Singular instance of the comparator that can be used in multiple trees. |
Constructor Summary | |
(package private) |
DiscoveredIPMgr.AddrComparator()
|
Method Summary | |
int |
compare(java.lang.Object a,
java.lang.Object b)
The compare method returns the difference between to objects. |
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 |
Field Detail |
static final DiscoveredIPMgr.AddrComparator comparator
Constructor Detail |
DiscoveredIPMgr.AddrComparator()
Method Detail |
public int compare(java.lang.Object a, java.lang.Object b)
InetAddress
or null
.
compare
in interface java.util.Comparator
a
- an instance of an InetAddress.b
- an instance of an InetAddress.
|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |