public class CharSequenceUtils
extends java.lang.Object
CharSequence that are
null safe.CharSequence| Constructor and Description |
|---|
CharSequenceUtils()
CharSequenceUtils instances should NOT be constructed in
standard programming. |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.CharSequence |
subSequence(java.lang.CharSequence cs,
int start)
Returns a new
CharSequence that is a subsequence of this
sequence starting with the char value at the specified index. |
static char[] |
toCharArray(java.lang.CharSequence source)
Converts the given CharSequence to a char[].
|
public CharSequenceUtils()
CharSequenceUtils instances should NOT be constructed in
standard programming.
This constructor is public to permit tools that require a JavaBean instance to operate.
public static java.lang.CharSequence subSequence(java.lang.CharSequence cs,
int start)
CharSequence that is a subsequence of this
sequence starting with the char value at the specified index.
This provides the CharSequence equivalent to String.substring(int).
The length (in char) of the returned sequence is length() - start,
so if start == end then an empty sequence is returned.
cs - the specified subsequence, null returns nullstart - the start index, inclusive, validjava.lang.IndexOutOfBoundsException - if start is negative or if
start is greater than length()public static char[] toCharArray(java.lang.CharSequence source)
source - the CharSequence to be processed.Copyright © 2010 - 2023 Adobe. All Rights Reserved