public class MonthStringComparator extends Object implements Comparator<CharSequence>
Constructor and Description |
---|
MonthStringComparator(DateFormatSymbols symbols)
Constructor with date symbols.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(CharSequence s1,
CharSequence s2) |
static MonthStringComparator |
getInstance()
Returns the instance for the default locale.
|
static MonthStringComparator |
getInstance(Locale locale)
Returns an instance for the specified locale.
|
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 MonthStringComparator(DateFormatSymbols symbols)
symbols
- the date symbolspublic static MonthStringComparator getInstance()
Locale.getDefault()
public static MonthStringComparator getInstance(Locale locale)
public int compare(CharSequence s1, CharSequence s2)
compare
in interface Comparator<CharSequence>
Copyright © 2024. All rights reserved.