Class RangeComparator

  • All Implemented Interfaces:
    java.io.Serializable, java.util.Comparator<Range>

    public class RangeComparator
    extends java.lang.Object
    implements java.util.Comparator<Range>, java.io.Serializable
    Use this class to compare two JAXB-generated Range objects from the SnmpConfig class.
    Author:
    David Hustace
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      RangeComparator()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(Range rng1, Range rng2)
      compare
      • 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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Constructor Detail

      • RangeComparator

        public RangeComparator()
    • Method Detail

      • compare

        public int compare​(Range rng1,
                           Range rng2)

        compare

        Specified by:
        compare in interface java.util.Comparator<Range>
        Parameters:
        rng1 - a org.opennms.netmgt.config.common.Range object.
        rng2 - a org.opennms.netmgt.config.common.Range object.
        Returns:
        a int.