CharSequence that are
null safe.
CharSequence
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| pack-priv static final int |
| Access | Constructor and Description |
|---|---|
| public | CharSequenceUtils()
Deprecated
TODO Make private in 4.0.
|
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | checkLaterThan1(final CharSequence cs, final CharSequence searchChar, final int len2, final int start1)
|
| pack-priv static int | Returns: the index where the search sequence was found, or-1 if there is no such occurrence.the cs, final CharSequence CharSequence to be processedthe searchChar, final int CharSequence to be searched forthe start index start)Used by the indexOf(CharSequence methods) as a green implementation of indexOf. |
| pack-priv static int | Returns: the index where the search char was found, -1 if not foundthe cs, final int CharSequence to be processed, not nullthe char to be searched for searchChar, int the start index, negative starts at the string start start)Returns the index within |
| pack-priv static int | Returns: the index where the search sequence was foundthe cs, final CharSequence CharSequence to be processedthe searchChar, int CharSequence to findthe start index start)Used by the lastIndexOf(CharSequence methods) as a green implementation of lastIndexOf |
| pack-priv static int | Returns: the index where the search char was found, -1 if not found.the cs, final int CharSequence to be processed.the char to be searched for. searchChar, int the start index, negative returns -1, beyond length starts at end. start)Returns the index within |
| pack-priv static boolean | Returns: whether the region matchedthe cs, final boolean CharSequence to be processedwhether or not to be case-insensitive ignoreCase, final int the index to start on the thisStart, final CharSequence cs CharSequencethe substring, final int CharSequence to be looked forthe index to start on the start, final int substring CharSequencecharacter length of the region length)Green implementation of regionMatches. |
| public static CharSequence | Returns: a new subsequence, may be nullthe specified subsequence, null returns null cs, final int the start index, inclusive, valid start)Returns a new |
| public static char[] | Returns: the resulting char array, never null.the source)CharSequence to be processed.Converts the given CharSequence to a char[]. |
| NOT_FOUND | back to summary |
|---|---|
| private static final int NOT_FOUND | |
| TO_STRING_LIMIT | back to summary |
|---|---|
| pack-priv static final int TO_STRING_LIMIT | |
| CharSequenceUtils | back to summary |
|---|---|
| public CharSequenceUtils()
Deprecated TODO Make private in 4.0.
This constructor is public to permit tools that require a JavaBean instance to operate.
| |
| checkLaterThan1 | back to summary |
|---|---|
| private static boolean checkLaterThan1(final CharSequence cs, final CharSequence searchChar, final int len2, final int start1) | |
| indexOf | back to summary |
|---|---|
| pack-priv static int indexOf(final CharSequence cs, final CharSequence searchChar, final int start) Used by the indexOf(CharSequence methods) as a green implementation of indexOf.
| |
| indexOf | back to summary |
|---|---|
| pack-priv static int indexOf(final CharSequence cs, final int searchChar, int start) Returns the index within
If a character with value (this.charAt(k) == searchChar) && (k >= start)
is true. For other values of (this.codePointAt(k) == searchChar) && (k >= start)
is true. In either case, if no such character occurs inm
There is no restriction on the value of
All indices are specified in
| |
| lastIndexOf | back to summary |
|---|---|
| pack-priv static int lastIndexOf(final CharSequence cs, final CharSequence searchChar, int start) Used by the lastIndexOf(CharSequence methods) as a green implementation of lastIndexOf
| |
| lastIndexOf | back to summary |
|---|---|
| pack-priv static int lastIndexOf(final CharSequence cs, final int searchChar, int start) Returns the index within (this.charAt(k) == searchChar) && (k <= start)
is true. For other values of
(this.codePointAt(k) == searchChar) && (k <= start)
is true. In either case, if no such character occurs in
All indices are specified in
| |
| regionMatches | back to summary |
|---|---|
| pack-priv static boolean regionMatches(final CharSequence cs, final boolean ignoreCase, final int thisStart, final CharSequence substring, final int start, final int length) Green implementation of regionMatches.
| |
| subSequence | back to summary |
|---|---|
| public static CharSequence subSequence(final CharSequence cs, final int start) Returns a new This provides the
| |
| toCharArray | back to summary |
|---|---|
| public static char[] toCharArray(final CharSequence source) Converts the given CharSequence to a char[].
| |