Package tech.uom.lib.common.util
Class NaturalQuantityComparator<T extends javax.measure.Quantity<T>>
- java.lang.Object
-
- tech.uom.lib.common.util.NaturalQuantityComparator<T>
-
- Type Parameters:
T- the type of quantity
- All Implemented Interfaces:
Comparator<javax.measure.Quantity<T>>
public class NaturalQuantityComparator<T extends javax.measure.Quantity<T>> extends Object implements Comparator<javax.measure.Quantity<T>>
Comparator to sort quantities by natural order, looking both the unit and the value.- Since:
- 2.0
- Version:
- 1.0.1
- Author:
- Werner Keil, Otavio Santana
-
-
Constructor Summary
Constructors Constructor Description NaturalQuantityComparator()
-
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 Detail
-
NaturalQuantityComparator
public NaturalQuantityComparator()
-
-