Package org.apache.johnzon.jsonb.order
Class PerHierarchyAndLexicographicalOrderFieldComparator
- java.lang.Object
-
- org.apache.johnzon.jsonb.order.PerHierarchyAndLexicographicalOrderFieldComparator
-
- All Implemented Interfaces:
Comparator<String>
public class PerHierarchyAndLexicographicalOrderFieldComparator extends Object implements Comparator<String>
-
-
Constructor Summary
Constructors Constructor Description PerHierarchyAndLexicographicalOrderFieldComparator(Class<?> clazz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(String o1, String o2)
private int
distance(String o1)
private int
slowDistance(String o1)
-
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
-
PerHierarchyAndLexicographicalOrderFieldComparator
public PerHierarchyAndLexicographicalOrderFieldComparator(Class<?> clazz)
-
-