Package org.apache.jorphan.util
Class AlphaNumericKeyComparator
java.lang.Object
org.apache.jorphan.util.AlphaNumericKeyComparator
- All Implemented Interfaces:
- Comparator<Map.Entry<Object,- Object>> 
public class AlphaNumericKeyComparator
extends Object
implements Comparator<Map.Entry<Object,Object>> 
Comparator for 
Map.Entry Objects, that compares based on their keys only. The keys
 will be compared in a human readable fashion by trying to parse numbers that appear in
 the keys as integers and compare those, too.Heavily influenced by https://codereview.stackexchange.com/questions/37192/number-aware-string-sorting-with-comparator
- 
Field SummaryFields
- 
Method SummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparatorequals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
- 
Field Details- 
INSTANCE
 
- 
- 
Method Details- 
compare- Specified by:
- comparein interface- Comparator<Map.Entry<Object,- Object>> 
 
 
-