public class NaturalOrderComparator<T>
extends java.lang.Object
implements java.util.Comparator<T>, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected boolean |
ignoreAccents |
protected boolean |
ignoreCase |
protected boolean |
skipSpaces |
Constructor and Description |
---|
NaturalOrderComparator() |
NaturalOrderComparator(boolean ignoreCase,
boolean ignoreAccents,
boolean skipSpaces) |
Modifier and Type | Method and Description |
---|---|
int |
compare(T o1,
T o2) |
protected int[] |
compareDigits(java.lang.String str1,
int ndx1,
java.lang.String str2,
int ndx2)
Compare digits at certain position in two strings.
|
protected final boolean ignoreCase
protected final boolean ignoreAccents
protected final boolean skipSpaces
public NaturalOrderComparator()
public NaturalOrderComparator(boolean ignoreCase, boolean ignoreAccents, boolean skipSpaces)
protected int[] compareDigits(java.lang.String str1, int ndx1, java.lang.String str2, int ndx2)
Copyright © 2003-present Jodd Team