| Package | Description |
|---|---|
| java.io | |
| java.lang | |
| java.util | |
| java.util.regex |
Classes for matching character sequences against patterns specified by regular
expressions.
|
| java.util.stream |
Classes to support functional-style operations on streams of elements, such
as map-reduce transformations on collections.
|
| Modifier and Type | Method and Description |
|---|---|
Writer |
Writer.append(CharSequence csq)
Appends the specified character sequence to this writer.
|
StringWriter |
StringWriter.append(CharSequence csq)
Appends the specified character sequence to this writer.
|
PrintWriter |
PrintWriter.append(CharSequence csq)
Appends the specified character sequence to this writer.
|
PrintStream |
PrintStream.append(CharSequence csq)
Appends the specified character sequence to this output stream.
|
Writer |
Writer.append(CharSequence csq,
int start,
int end)
Appends a subsequence of the specified character sequence to this writer.
|
StringWriter |
StringWriter.append(CharSequence csq,
int start,
int end)
Appends a subsequence of the specified character sequence to this writer.
|
PrintWriter |
PrintWriter.append(CharSequence csq,
int start,
int end)
Appends a subsequence of the specified character sequence to this writer.
|
PrintStream |
PrintStream.append(CharSequence csq,
int start,
int end)
Appends a subsequence of the specified character sequence to this output
stream.
|
| Modifier and Type | Class and Description |
|---|---|
class |
String
The
String class represents character strings. |
class |
StringBuffer
A thread-safe, mutable sequence of characters.
|
class |
StringBuilder
A mutable sequence of characters.
|
| Modifier and Type | Method and Description |
|---|---|
CharSequence |
StringBuffer.subSequence(int start,
int end) |
CharSequence |
String.subSequence(int beginIndex,
int endIndex)
Returns a new character sequence that is a subsequence of this sequence.
|
CharSequence |
CharSequence.subSequence(int start,
int end)
Returns a
CharSequence that is a subsequence of this sequence. |
| Modifier and Type | Method and Description |
|---|---|
StringBuilder |
StringBuilder.append(CharSequence s) |
StringBuffer |
StringBuffer.append(CharSequence s)
Appends the specified
CharSequence to this
sequence. |
Appendable |
Appendable.append(CharSequence csq)
Appends the specified character sequence to this Appendable.
|
StringBuilder |
StringBuilder.append(CharSequence s,
int start,
int end) |
StringBuffer |
StringBuffer.append(CharSequence s,
int start,
int end) |
Appendable |
Appendable.append(CharSequence csq,
int start,
int end)
Appends a subsequence of the specified character sequence to this
Appendable.
|
static int |
Character.codePointAt(CharSequence seq,
int index)
Returns the code point at the given index of the
CharSequence. |
static int |
Character.codePointBefore(CharSequence seq,
int index)
Returns the code point preceding the given index of the
CharSequence. |
static int |
Character.codePointCount(CharSequence seq,
int beginIndex,
int endIndex)
Returns the number of Unicode code points in the text range of
the specified char sequence.
|
boolean |
String.contains(CharSequence s)
Returns true if and only if this string contains the specified
sequence of char values.
|
boolean |
String.contentEquals(CharSequence cs)
Compares this string to the specified
CharSequence. |
StringBuilder |
StringBuilder.insert(int dstOffset,
CharSequence s) |
StringBuffer |
StringBuffer.insert(int dstOffset,
CharSequence s) |
StringBuilder |
StringBuilder.insert(int dstOffset,
CharSequence s,
int start,
int end) |
StringBuffer |
StringBuffer.insert(int dstOffset,
CharSequence s,
int start,
int end) |
static int |
Character.offsetByCodePoints(CharSequence seq,
int index,
int codePointOffset)
Returns the index within the given char sequence that is offset
from the given
index by codePointOffset
code points. |
String |
String.replace(CharSequence target,
CharSequence replacement)
Replaces each substring of this string that matches the literal target
sequence with the specified literal replacement sequence.
|
| Constructor and Description |
|---|
StringBuffer(CharSequence seq)
Constructs a string buffer that contains the same characters
as the specified
CharSequence. |
StringBuilder(CharSequence seq)
Constructs a string builder that contains the same characters
as the specified
CharSequence. |
| Modifier and Type | Method and Description |
|---|---|
StringJoiner |
StringJoiner.add(CharSequence newElement)
Adds a copy of the given
CharSequence value as the next
element of the StringJoiner value. |
StringJoiner |
StringJoiner.setEmptyValue(CharSequence emptyValue)
Sets the sequence of characters to be used when determining the string
representation of this
StringJoiner and no elements have been
added yet, that is, when it is empty. |
| Constructor and Description |
|---|
StringJoiner(CharSequence delimiter)
Constructs a
StringJoiner with no characters in it, with no
prefix or suffix, and a copy of the supplied
delimiter. |
StringJoiner(CharSequence delimiter,
CharSequence prefix,
CharSequence suffix)
Constructs a
StringJoiner with no characters in it using copies
of the supplied prefix, delimiter and suffix. |
| Modifier and Type | Method and Description |
|---|---|
Matcher |
Pattern.matcher(CharSequence input)
Creates a matcher that will match the given input against this pattern.
|
static boolean |
Pattern.matches(String regex,
CharSequence input)
Compiles the given regular expression and attempts to match the given
input against it.
|
Matcher |
Matcher.reset(CharSequence input)
Resets this matcher with a new input sequence.
|
String[] |
Pattern.split(CharSequence input)
Splits the given input sequence around matches of this pattern.
|
String[] |
Pattern.split(CharSequence input,
int limit)
Splits the given input sequence around matches of this pattern.
|
| Modifier and Type | Method and Description |
|---|---|
static Collector<CharSequence,?,String> |
Collectors.joining()
Returns a
Collector that concatenates the input elements into a
String, in encounter order. |
static Collector<CharSequence,?,String> |
Collectors.joining(CharSequence delimiter)
Returns a
Collector that concatenates the input elements,
separated by the specified delimiter, in encounter order. |
static Collector<CharSequence,?,String> |
Collectors.joining(CharSequence delimiter,
CharSequence prefix,
CharSequence suffix)
Returns a
Collector that concatenates the input elements,
separated by the specified delimiter, with the specified prefix and
suffix, in encounter order. |
| Modifier and Type | Method and Description |
|---|---|
static Collector<CharSequence,?,String> |
Collectors.joining(CharSequence delimiter)
Returns a
Collector that concatenates the input elements,
separated by the specified delimiter, in encounter order. |
static Collector<CharSequence,?,String> |
Collectors.joining(CharSequence delimiter,
CharSequence prefix,
CharSequence suffix)
Returns a
Collector that concatenates the input elements,
separated by the specified delimiter, with the specified prefix and
suffix, in encounter order. |
Copyright © 2025 API Design. All Rights Reserved.