Package org.snpeff.geneOntology
Class CompareByValue
java.lang.Object
org.snpeff.geneOntology.CompareByValue
- All Implemented Interfaces:
Comparator
Compare two elements in a Map (e.g. HashMap) accessing them by keys.
Useful to sort by values elements in a Map
Note: Decreasing order
- Author:
- pcingola
-
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
-
CompareByValue
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator
-