public class StringComparator extends Object implements Comparator<String>
Constructor and Description |
---|
StringComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(String s1,
String s2) |
boolean |
isAscending() |
boolean |
isCaseSensitive() |
void |
setAscending(boolean ascending) |
void |
setCaseSensitive(boolean caseSensitive) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public int compare(String s1, String s2)
compare
in interface Comparator<String>
public boolean isCaseSensitive()
public void setCaseSensitive(boolean caseSensitive)
public boolean isAscending()
public void setAscending(boolean ascending)
Copyright © 2018. All rights reserved.