Package tech.units.indriya.function
Class NaturalQuantityComparator<T extends javax.measure.Quantity<T>>
java.lang.Object
tech.units.indriya.function.NaturalQuantityComparator<T>
- 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:
- 1.0
- Version:
- 1.0.1
-
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
-
NaturalQuantityComparator
public NaturalQuantityComparator()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<T extends javax.measure.Quantity<T>>
-