public class NaturalNumericOrderComparator extends Object implements Comparator<String>
| Constructor and Description |
|---|
NaturalNumericOrderComparator(Comparator<String> aOtherComp)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(String a,
String b) |
Comparator<? super String> |
getOtherComparator() |
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 NaturalNumericOrderComparator(@Nonnull Comparator<String> aOtherComp)
aOtherComp - The comparator to be used, if there is no numeric stuff to compare.@Nonnull public final Comparator<? super String> getOtherComparator()
Copyright © 2014–2023 Philip Helger. All rights reserved.