You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add lenient factory method to KiwiSort.Direction that accepts a String, e.g. KiwiSort.Direction.fromString(str)
It should throw IllegalArgumentException if the given direction does not resolve to a valid KiwiSort.Direction, e.g. if given an invalid string like "foo".
The KiwiSort.Direction#fromString factory method is case-insensitive
and strips any leading or trailing whitespace. It is overloaded to
allow using with the default Locale or a specific one.
Closes#770
The KiwiSort.Direction#fromString factory method is case-insensitive
and strips any leading or trailing whitespace. It is overloaded to
allow using with the default Locale or a specific one.
Closes#770
Instead of converting the given String value to uppercase
and having to deal with Locales, do a case-insensitive
comparison instead. To make this much easier, I just used
EnumUtils#getEnumIgnoreCase from commons-lang3.
Now, there is no need for allowing a Locale to be supplied
which was a really an implementation detail and should not
be part of the public API.
Refs #770#772
Instead of converting the given String value to uppercase
and having to deal with Locales, do a case-insensitive
comparison instead. To make this much easier, I just used
EnumUtils#getEnumIgnoreCase from commons-lang3.
Now, there is no need for allowing a Locale to be supplied
which was a really an implementation detail and should not
be part of the public API.
Refs #770#772
Add lenient factory method to
KiwiSort.Direction
that accepts a String, e.g.KiwiSort.Direction.fromString(str)
It should throw
IllegalArgumentException
if the given direction does not resolve to a validKiwiSort.Direction
, e.g. if given an invalid string like"foo"
.Originally proposed in #707
The text was updated successfully, but these errors were encountered: