| Package | Description |
|---|---|
| java.io |
Provides for system input and output through data streams, serialization and the file system.
|
| java.lang |
Provides classes that are fundamental to the design of the Java programming language.
|
| java.nio |
Defines buffers, which are containers for data, and provides an overview of the other NIO packages.
|
| java.nio.charset |
Defines charsets, decoders, and encoders, for translating between bytes and Unicode characters.
|
| java.nio.file |
Defines interfaces and classes for the Java virtual machine to access files, file attributes, and file systems.
|
| java.text |
Provides classes and interfaces for handling text, dates, numbers, and messages in a manner independent of natural languages.
|
| java.time |
The main API for dates, times, instants, and durations.
|
| java.time.format |
Provides classes to print and parse dates and times.
|
| java.util |
Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array).
|
| 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.
|
| javax.annotation.processing |
Facilities for declaring annotation processors and for allowing annotation processors to communicate with an annotation processing tool environment.
|
| javax.lang.model |
Classes and hierarchies of packages used to model the Java programming language.
|
| javax.lang.model.element |
Interfaces used to model elements of the Java programming language.
|
| javax.lang.model.util |
Utilities to assist in the processing of program elements and types.
|
| javax.swing.text |
Provides classes and interfaces that deal with editable and noneditable text components.
|
| javax.tools |
Provides interfaces for tools which can be invoked from a program, for example, compilers.
|
| Modifier and Type | Method and Description |
|---|---|
StringWriter |
StringWriter.append(CharSequence
Appends the specified character sequence to this writer.
|
Writer |
Writer.append(CharSequence
Appends the specified character sequence to this writer.
|
CharArrayWriter |
CharArrayWriter.append(CharSequence
Appends the specified character sequence to this writer.
|
PrintWriter |
PrintWriter.append(CharSequence
Appends the specified character sequence to this writer.
|
PrintStream |
PrintStream.append(CharSequence
Appends the specified character sequence to this output stream.
|
StringWriter |
StringWriter.append(CharSequence
Appends a subsequence of the specified character sequence to this writer.
|
Writer |
Writer.append(CharSequence
Appends a subsequence of the specified character sequence to this writer.
|
CharArrayWriter |
CharArrayWriter.append(CharSequence
Appends a subsequence of the specified character sequence to this writer.
|
PrintWriter |
PrintWriter.append(CharSequence
Appends a subsequence of the specified character sequence to this writer.
|
PrintStream |
PrintStream.append(CharSequence
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 |
CharSequence.subSequence(int start, int end)
Returns a
CharSequence that is a subsequence of this sequence.
|
CharSequence |
String.subSequence(int beginIndex, int endIndex)
Returns a character sequence that is a subsequence of this sequence.
|
CharSequence |
StringBuffer.subSequence(int start, int end)
|
| Modifier and Type | Method and Description |
|---|---|
Appendable |
Appendable.append(CharSequence
Appends the specified character sequence to this
Appendable.
|
StringBuffer |
StringBuffer.append(CharSequence
Appends the specified
CharSequence to this sequence.
|
StringBuilder |
StringBuilder.append(CharSequence
|
Appendable |
Appendable.append(CharSequence
Appends a subsequence of the specified character sequence to this
Appendable.
|
StringBuffer |
StringBuffer.append(CharSequence
|
StringBuilder |
StringBuilder.append(CharSequence
|
static int |
Character.codePointAt(CharSequence
Returns the code point at the given index of the
CharSequence.
|
static int |
Character.codePointBefore(CharSequence
Returns the code point preceding the given index of the
CharSequence.
|
static int |
Character.codePointCount(CharSequence
Returns the number of Unicode code points in the text range of the specified char sequence.
|
boolean |
String.contains(CharSequence
Returns true if and only if this string contains the specified sequence of char values.
|
boolean |
String.contentEquals(CharSequence
Compares this string to the specified
CharSequence.
|
StringBuffer |
StringBuffer.insert(int dstOffset, CharSequence
|
StringBuilder |
StringBuilder.insert(int dstOffset, CharSequence
|
StringBuffer |
StringBuffer.insert(int dstOffset, CharSequence
|
StringBuilder |
StringBuilder.insert(int dstOffset, CharSequence
|
static String |
String.join(CharSequence
Returns a new String composed of copies of the
CharSequence elements joined together with a copy of the specified
delimiter.
|
static String |
String.join(CharSequence
Returns a new String composed of copies of the
CharSequence elements joined together with a copy of the specified
delimiter.
|
static String |
String.join(CharSequence
Returns a new
String composed of copies of the
CharSequence elements joined together with a copy of the specified
delimiter.
|
static int |
Character.offsetByCodePoints(CharSequence
Returns the index within the given char sequence that is offset from the given
index by
codePointOffset code points.
|
String |
String.replace(CharSequence
Replaces each substring of this string that matches the literal target sequence with the specified literal replacement sequence.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
String.join(CharSequence
Returns a new
String composed of copies of the
CharSequence elements joined together with a copy of the specified
delimiter.
|
| Constructor and Description | |
|---|---|
StringBuffer(CharSequence
Constructs a string buffer that contains the same characters as the specified
CharSequence.
|
|
StringBuilder(CharSequence
Constructs a string builder that contains the same characters as the specified
CharSequence.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CharBuffer
A char buffer.
|
| Modifier and Type | Method and Description |
|---|---|
CharBuffer |
CharBuffer.append(CharSequence
Appends the specified character sequence to this buffer
(optional operation).
|
CharBuffer |
CharBuffer.append(CharSequence
Appends a subsequence of the specified character sequence to this buffer
(optional operation).
|
static CharBuffer |
CharBuffer.wrap(CharSequence
Wraps a character sequence into a buffer.
|
static CharBuffer |
CharBuffer.wrap(CharSequence
Wraps a character sequence into a buffer.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
CharsetEncoder.canEncode(CharSequence
Tells whether or not this encoder can encode the given character sequence.
|
| Modifier and Type | Method and Description |
|---|---|
static Path |
Files.write(Path
Write lines of text to a file.
|
static Path |
Files.write(Path
Write lines of text to a file.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
Normalizer.isNormalized(CharSequence
Determines if the given sequence of char values is normalized.
|
static String |
Normalizer.normalize(CharSequence
Normalize a sequence of char values.
|
| Modifier and Type | Method and Description |
|---|---|
static LocalTime |
LocalTime.parse(CharSequence
Obtains an instance of
LocalTime from a text string such as
10:15.
|
static YearMonth |
YearMonth.parse(CharSequence
Obtains an instance of
YearMonth from a text string such as
2007-12.
|
static LocalDate |
LocalDate.parse(CharSequence
Obtains an instance of
LocalDate from a text string such as
2007-12-03.
|
static OffsetTime |
OffsetTime.parse(CharSequence
Obtains an instance of
OffsetTime from a text string such as
10:15:30+01:00.
|
static Period |
Period.parse(CharSequence
Obtains a
Period from a text string such as
PnYnMnD.
|
static Year |
Year.parse(CharSequence
Obtains an instance of
Year from a text string such as
2007.
|
static ZonedDateTime |
ZonedDateTime.parse(CharSequence
Obtains an instance of
ZonedDateTime from a text string such as
2007-12-03T10:15:30+01:00[Europe/Paris].
|
static OffsetDateTime |
OffsetDateTime.parse(CharSequence
Obtains an instance of
OffsetDateTime from a text string such as
2007-12-03T10:15:30+01:00.
|
static LocalDateTime |
LocalDateTime.parse(CharSequence
Obtains an instance of
LocalDateTime from a text string such as
2007-12-03T10:15:30.
|
static Duration |
Duration.parse(CharSequence
Obtains a
Duration from a text string such as
PnDTnHnMn.nS.
|
static MonthDay |
MonthDay.parse(CharSequence
Obtains an instance of
MonthDay from a text string such as
--12-03.
|
static Instant |
Instant.parse(CharSequence
Obtains an instance of
Instant from a text string such as
2007-12-03T10:15:30.00Z.
|
static LocalTime |
LocalTime.parse(CharSequence
Obtains an instance of
LocalTime from a text string using a specific formatter.
|
static YearMonth |
YearMonth.parse(CharSequence
Obtains an instance of
YearMonth from a text string using a specific formatter.
|
static LocalDate |
LocalDate.parse(CharSequence
Obtains an instance of
LocalDate from a text string using a specific formatter.
|
static OffsetTime |
OffsetTime.parse(CharSequence
Obtains an instance of
OffsetTime from a text string using a specific formatter.
|
static Year |
Year.parse(CharSequence
Obtains an instance of
Year from a text string using a specific formatter.
|
static ZonedDateTime |
ZonedDateTime.parse(CharSequence
Obtains an instance of
ZonedDateTime from a text string using a specific formatter.
|
static OffsetDateTime |
OffsetDateTime.parse(CharSequence
Obtains an instance of
OffsetDateTime from a text string using a specific formatter.
|
static LocalDateTime |
LocalDateTime.parse(CharSequence
Obtains an instance of
LocalDateTime from a text string using a specific formatter.
|
static MonthDay |
MonthDay.parse(CharSequence
Obtains an instance of
MonthDay from a text string using a specific formatter.
|
| Modifier and Type | Method and Description |
|---|---|
TemporalAccessor |
DateTimeFormatter.parse(CharSequence
Fully parses the text producing a temporal object.
|
TemporalAccessor |
DateTimeFormatter.parse(CharSequence
Parses the text using this formatter, providing control over the text position.
|
<T> T |
DateTimeFormatter.parse(CharSequence
Fully parses the text producing an object of the specified type.
|
TemporalAccessor |
DateTimeFormatter.parseBest(CharSequence
Fully parses the text producing an object of one of the specified types.
|
TemporalAccessor |
DateTimeFormatter.parseUnresolved(CharSequence
Parses the text using this formatter, without resolving the result, intended for advanced use cases.
|
| Constructor and Description | |
|---|---|
DateTimeParseException(String
Constructs a new exception with the specified message.
|
|
DateTimeParseException(String
Constructs a new exception with the specified message and cause.
|
| Modifier and Type | Method and Description |
|---|---|
StringJoiner |
StringJoiner.add(CharSequence
Adds a copy of the given
CharSequence value as the next element of the
StringJoiner value.
|
StringJoiner |
StringJoiner.setEmptyValue(CharSequence
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
Constructs a
StringJoiner with no characters in it, with no
prefix or
suffix, and a copy of the supplied
delimiter.
|
|
StringJoiner(CharSequence
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
Creates a matcher that will match the given input against this pattern.
|
static boolean |
Pattern.matches(String
Compiles the given regular expression and attempts to match the given input against it.
|
Matcher |
Matcher.reset(CharSequence
Resets this matcher with a new input sequence.
|
String |
Pattern.split(CharSequence
Splits the given input sequence around matches of this pattern.
|
String |
Pattern.split(CharSequence
Splits the given input sequence around matches of this pattern.
|
Stream |
Pattern.splitAsStream(CharSequence
Creates a stream from the given input sequence around matches of this pattern.
|
| Modifier and Type | Method and Description |
|---|---|
static Collector |
Collectors.joining()
Returns a
Collector that concatenates the input elements into a
String, in encounter order.
|
static Collector |
Collectors.joining(CharSequence
Returns a
Collector that concatenates the input elements, separated by the specified delimiter, in encounter order.
|
static Collector |
Collectors.joining(CharSequence
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 |
Collectors.joining(CharSequence
Returns a
Collector that concatenates the input elements, separated by the specified delimiter, in encounter order.
|
static Collector |
Collectors.joining(CharSequence
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 |
|---|---|
JavaFileObject |
Filer.createClassFile(CharSequence
Creates a new class file, and returns an object to allow writing to it.
|
FileObject |
Filer.createResource(JavaFileManager
Creates a new auxiliary resource file for writing and returns a file object for it.
|
JavaFileObject |
Filer.createSourceFile(CharSequence
Creates a new source file and returns an object to allow writing to it.
|
FileObject |
Filer.getResource(JavaFileManager
Returns an object for reading an existing resource.
|
void |
Messager.printMessage(Diagnostic
Prints a message of the specified kind.
|
void |
Messager.printMessage(Diagnostic
Prints a message of the specified kind at the location of the element.
|
void |
Messager.printMessage(Diagnostic
Prints a message of the specified kind at the location of the annotation mirror of the annotated element.
|
void |
Messager.printMessage(Diagnostic
Prints a message of the specified kind at the location of the annotation value inside the annotation mirror of the annotated element.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
SourceVersion.isIdentifier(CharSequence
Returns whether or not
name is a syntactically valid identifier (simple name) or keyword in the latest source version.
|
static boolean |
SourceVersion.isKeyword(CharSequence
Returns whether or not
s is a keyword or literal in the latest source version.
|
static boolean |
SourceVersion.isName(CharSequence
Returns whether or not
name is a syntactically valid qualified name in the latest source version.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
Name
An immutable sequence of characters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Name.contentEquals(CharSequence
Compares this name to the specified
CharSequence.
|
| Modifier and Type | Method and Description |
|---|---|
Name |
Elements.getName(CharSequence
Return a name with the same sequence of characters as the argument.
|
PackageElement |
Elements.getPackageElement(CharSequence
Returns a package given its fully qualified name.
|
TypeElement |
Elements.getTypeElement(CharSequence
Returns a type element given its canonical name.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Segment
A segment of a character array representing a fragment of text.
|
| Modifier and Type | Method and Description |
|---|---|
CharSequence |
Segment.subSequence(int start, int end)
Returns a
CharSequence that is a subsequence of this sequence.
|
| Modifier and Type | Method and Description |
|---|---|
CharSequence |
ForwardingFileObject.getCharContent(boolean ignoreEncodingErrors)
|
CharSequence |
SimpleJavaFileObject.getCharContent(boolean ignoreEncodingErrors)
This implementation always throws
UnsupportedOperationException.
|
CharSequence |
FileObject.getCharContent(boolean ignoreEncodingErrors)
Gets the character content of this file object, if available.
|