Add additional null-safe split methods in KiwiStrings #910
Labels
new feature
A new feature such as a new class, method, package, group of classes, etc.
Milestone
KiwiStrings
contains nine methods that split aCharSequence
to eitherIterable<String>
orList<String
>. These methods do not acceptnull
values and will throw an exception ifnull
is given as the argument. We have one "null-safe" method,nullSafeSplitOnCommas
which corresponds tosplitOnCommas
but does not throw an exception if givennull
or blank input.This task is to create null-safe methods corresponding to the existing methods, but which return an empty result if given
null
or blank input. While this does increase the API surface area, this is not a huge problem since it's just a utility class, and more importantly does not change the existing API or its behavior, and therefore existing code does not need to change at all.The text was updated successfully, but these errors were encountered: