public class NaturalOrderComparator extends Object implements Comparator<String>
| Modifier and Type | Method and Description |
|---|---|
int |
compare(String a,
String b) |
static Comparator<Path> |
forPaths() |
static Comparator<String> |
forStrings() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic static Comparator<String> forStrings()
public static Comparator<Path> forPaths()
public int compare(String a, String b)
compare in interface Comparator<String>Copyright © 2015–2020. All rights reserved.