- java.lang.Object
-
- org.snmp4j.agent.mo.util.LexicographicOctetStringComparator
-
- All Implemented Interfaces:
Comparator<org.snmp4j.smi.OctetString>
public class LexicographicOctetStringComparator extends Object implements Comparator<org.snmp4j.smi.OctetString>
-
-
Constructor Summary
Constructors Constructor Description LexicographicOctetStringComparator()LexicographicOctetStringComparator(boolean impliedLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(org.snmp4j.smi.OctetString os1, org.snmp4j.smi.OctetString os2)Compares its two OctetString instances for lexicographic order.-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public int compare(org.snmp4j.smi.OctetString os1, org.snmp4j.smi.OctetString os2)Compares its two OctetString instances for lexicographic order.- Specified by:
comparein interfaceComparator<org.snmp4j.smi.OctetString>- Parameters:
os1- the first object to be compared.os2- the second object to be compared.- Returns:
- a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
-
-