Package tech.uom.lib.common.util
Class UnitComparator<U extends javax.measure.Unit<?>>
java.lang.Object
tech.uom.lib.common.util.UnitComparator<U>
- All Implemented Interfaces:
Comparator<U>
public class UnitComparator<U extends javax.measure.Unit<?>>
extends Object
implements Comparator<U>
Comparator to sort units by natural order, looking both the name and the symbol.
- Since:
- 2.0
- Version:
- 1.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
-
UnitComparator
public UnitComparator()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<U extends javax.measure.Unit<?>>
-