Package org.openremote.model.util
Class NumberComparator
java.lang.Object
org.openremote.model.util.NumberComparator
- All Implemented Interfaces:
Comparator<Number>
A number comparator based on:
https://stackoverflow.com/questions/2683202/comparing-the-values-of-two-generic-numbers
-
Constructor Summary
Constructors -
Method Summary
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 Details
-
NumberComparator
public NumberComparator()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<Number>
-