Class NaturalQuantityComparator<T extends Quantity<T>>

java.lang.Object
tech.uom.lib.common.util.NaturalQuantityComparator<T>
Type Parameters:
T - the type of quantity
All Implemented Interfaces:
Comparator<Quantity<T>>

public class NaturalQuantityComparator<T extends Quantity<T>> extends Object implements Comparator<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