Package tech.uom.lib.common.util
Class UnitComparator<U extends javax.measure.Unit<?>>
- java.lang.Object
-
- tech.uom.lib.common.util.UnitComparator<U>
-
- Type Parameters:
U- the type to compare
- 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
- Author:
- Werner Keil
-
-
Constructor Summary
Constructors Constructor Description UnitComparator()
-
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
-
UnitComparator
public UnitComparator()
-
-