Package org.opennms.netmgt.config
Class SpecificComparator
- java.lang.Object
-
- org.opennms.netmgt.config.SpecificComparator
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.Comparator<java.lang.String>
public class SpecificComparator extends java.lang.Object implements java.util.Comparator<java.lang.String>, java.io.Serializable
This class is used to compare Specific object from the config SNMP package.- Author:
- David Hustace
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SpecificComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(java.lang.String spec1, java.lang.String spec2)
returns the difference of spec1 - spec2
-
-
-
Method Detail
-
compare
public int compare(java.lang.String spec1, java.lang.String spec2)
returns the difference of spec1 - spec2- Specified by:
compare
in interfacejava.util.Comparator<java.lang.String>
- Parameters:
spec1
- aString
object.spec2
- aString
object.- Returns:
- -1 for spec1 < spec2, 0 for spec1 == spec2, 1 for spec1 > spec2
-
-