-
public class CharSequenceUtilsOperations on java.lang.CharSequence that are
{@code null}safe.
-
-
Constructor Summary
Constructors Constructor Description CharSequenceUtils(){@code CharSequenceUtils}instances should NOT be constructed instandard programming.
-
Method Summary
Modifier and Type Method Description static CharSequencesubSequence(CharSequence cs, int start)Returns a new {@code CharSequence}that is a subsequence of thissequence starting with the{@code char}value at the specified index.-
-
Method Detail
-
subSequence
static CharSequence subSequence(CharSequence cs, int start)
Returns a new
{@code CharSequence}that is a subsequence of thissequence starting with the{@code char}value at the specified index.This provides the
{@code CharSequence}equivalent to substring.The length (in{@code char}) of the returned sequence is{@code length() - start},so if{@code start == end}then an empty sequence is returned.- Parameters:
cs- the specified subsequence, null returns nullstart- the start index, inclusive, valid
-
-
-
-