org.snmp4j.agent.mo.util
Class LexicographicOctetStringComparator

java.lang.Object
  extended by org.snmp4j.agent.mo.util.LexicographicOctetStringComparator
All Implemented Interfaces:
java.util.Comparator<org.snmp4j.smi.OctetString>

public class LexicographicOctetStringComparator
extends java.lang.Object
implements java.util.Comparator<org.snmp4j.smi.OctetString>


Constructor Summary
LexicographicOctetStringComparator()
           
LexicographicOctetStringComparator(boolean impliedLength)
           
 
Method Summary
 int compare(org.snmp4j.smi.OctetString os1, org.snmp4j.smi.OctetString os2)
          Compares its two OctetString instances for lexicographic order.
 
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

LexicographicOctetStringComparator

public LexicographicOctetStringComparator()

LexicographicOctetStringComparator

public LexicographicOctetStringComparator(boolean impliedLength)
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:
compare in interface java.util.Comparator<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.

Copyright 2005-2010 Frank Fock (SNMP4J.org)

Copyright © 2011 SNMP4J.org. All Rights Reserved.