Uses of Interface
java.lang.CharSequence
Packages that useCharSequence
Package
Description
Provides utilities for operations on abstract syntax trees (AST).
Provides for system input and output through data streams,serialization and the file system.
Provides classes that are fundamental to the design of the Javaprogramming language.
Provides classfile parsing, generation, and transformation library.
Provides interfaces describing constant pool entries for the
java.lang.classfile library.HTTP Client and WebSocket APIs
Defines buffers, which are containers for data, and provides anoverview of the other NIO packages.
Defines charsets, decoders, and encoders, for translating betweenbytes and Unicode characters.
Defines interfaces and classes for the Java virtual machine to access files,file attributes, and file systems.
Provides classes and interfaces for handling text, dates, numbers,and messages in a manner independent of natural languages.
The main API for dates, times, instants, and durations.
Provides classes to print and parse dates and times.
Contains the collections framework, some internationalization support classes,a service loader, properties, random number generation, string parsingand scanning classes, base64 encoding and decoding, a bit array, andseveral miscellaneous utility classes.
Classes for matching character sequences against patterns specifiedby regular expressions.
Classes to support functional-style operations on streams of elements, suchas map-reduce transformations on collections.
Facilities for declaring annotation processors and forallowing annotation processors to communicate with an annotation processingtool environment.
Types and hierarchies of packages comprising a Java language model, a reflective API that models the declarations and types of the Javaprogramming language.
Interfaces used to model elements of the Java programming language.
Utilities to assist in the processing ofprogram elements andtypes.
Provides classes and interfaces that deal with editable and noneditable textcomponents.
Provides interfaces for tools which can be invoked from a program,for example, compilers.
Uses ofCharSequence incom.sun.source.util
Methods incom.sun.source.util that returnCharSequenceModifier and TypeMethodDescriptionParameterNameProvider.getParameterName(VariableElement parameter) Infer a parameter name for the given parameter.Methods incom.sun.source.util with parameters of typeCharSequenceModifier and TypeMethodDescriptionabstract voidDocTrees.printMessage(Diagnostic.Kind kind,CharSequence msg,DocTree t,DocCommentTree c,CompilationUnitTree root) Prints a message of the specified kind at the location of thetree within the provided compilation unit.abstract voidTrees.printMessage(Diagnostic.Kind kind,CharSequence msg,Tree t,CompilationUnitTree root) Prints a message of the specified kind at the location of thetree within the provided compilation unitUses ofCharSequence injava.io
Methods injava.io with parameters of typeCharSequenceModifier and TypeMethodDescriptionCharArrayWriter.append(CharSequence csq) Appends the specified character sequence to this writer.CharArrayWriter.append(CharSequence csq, int start, int end) Appends a subsequence of the specified character sequence to this writer.PrintStream.append(CharSequence csq) Appends the specified character sequence to this output stream.PrintStream.append(CharSequence csq, int start, int end) Appends a subsequence of the specified character sequence to this outputstream.PrintWriter.append(CharSequence csq) Appends the specified character sequence to this writer.PrintWriter.append(CharSequence csq, int start, int end) Appends a subsequence of the specified character sequence to this writer.StringWriter.append(CharSequence csq) Appends the specified character sequence to this writer.StringWriter.append(CharSequence csq, int start, int end) Appends a subsequence of the specified character sequence to this writer.Writer.append(CharSequence csq) Appends the specified character sequence to this writer.Writer.append(CharSequence csq, int start, int end) Appends a subsequence of the specified character sequence to this writer.staticReaderReader.of(CharSequence cs) Returns aReaderthat reads characters from aCharSequence.Uses ofCharSequence injava.lang
Classes injava.lang that implementCharSequenceModifier and TypeClassDescriptionfinal classTheStringclass represents character strings.final classA thread-safe, mutable sequence of characters.final classA mutable sequence of characters.Methods injava.lang that returnCharSequenceModifier and TypeMethodDescriptionCharSequence.subSequence(int start, int end) Returns aCharSequencethat is a subsequence of this sequence.String.subSequence(int beginIndex, int endIndex) Returns a character sequence that is a subsequence of this sequence.StringBuffer.subSequence(int start, int end) Methods injava.lang with parameters of typeCharSequenceModifier and TypeMethodDescriptionAppendable.append(CharSequence csq) Appends the specified character sequence to thisAppendable.Appendable.append(CharSequence csq, int start, int end) Appends a subsequence of the specified character sequence to thisAppendable.StringBuffer.append(CharSequence s) Appends the specifiedCharSequenceto thissequence.StringBuffer.append(CharSequence s, int start, int end) StringBuilder.append(CharSequence s) StringBuilder.append(CharSequence s, int start, int end) static intCharacter.codePointAt(CharSequence seq, int index) Returns the code point at the given index of theCharSequence.static intCharacter.codePointBefore(CharSequence seq, int index) Returns the code point preceding the given index of theCharSequence.static intCharacter.codePointCount(CharSequence seq, int beginIndex, int endIndex) Returns the number of Unicode code points in the text range ofthe specified char sequence.static intCharSequence.compare(CharSequence cs1,CharSequence cs2) Compares twoCharSequenceinstances lexicographically.booleanString.contains(CharSequence s) Returns true if and only if this string contains the specifiedsequence of char values.booleanString.contentEquals(CharSequence cs) Compares this string to the specifiedCharSequence.StringBuffer.insert(int dstOffset,CharSequence s) StringBuffer.insert(int dstOffset,CharSequence s, int start, int end) StringBuilder.insert(int dstOffset,CharSequence s) StringBuilder.insert(int dstOffset,CharSequence s, int start, int end) staticStringString.join(CharSequence delimiter,CharSequence... elements) Returns a new String composed of copies of theCharSequence elementsjoined together with a copy ofthe specifieddelimiter.staticStringString.join(CharSequence delimiter,Iterable<? extendsCharSequence> elements) Returns a newStringcomposed of copies of theCharSequence elementsjoined together with a copy of thespecifieddelimiter.static intCharacter.offsetByCodePoints(CharSequence seq, int index, int codePointOffset) Returns the index within the given char sequence that is offsetfrom the givenindexbycodePointOffsetcode points.static intInteger.parseInt(CharSequence s, int beginIndex, int endIndex, int radix) Parses theCharSequenceargument as a signedintin thespecifiedradix, beginning at the specifiedbeginIndexand extending toendIndex - 1.static longLong.parseLong(CharSequence s, int beginIndex, int endIndex, int radix) Parses theCharSequenceargument as a signedlonginthe specifiedradix, beginning at the specifiedbeginIndexand extending toendIndex - 1.static intInteger.parseUnsignedInt(CharSequence s, int beginIndex, int endIndex, int radix) Parses theCharSequenceargument as an unsignedintinthe specifiedradix, beginning at the specifiedbeginIndexand extending toendIndex - 1.static longLong.parseUnsignedLong(CharSequence s, int beginIndex, int endIndex, int radix) Parses theCharSequenceargument as an unsignedlonginthe specifiedradix, beginning at the specifiedbeginIndexand extending toendIndex - 1.StringBuffer.repeat(CharSequence cs, int count) StringBuilder.repeat(CharSequence cs, int count) String.replace(CharSequence target,CharSequence replacement) Replaces each substring of this string that matches the literal targetsequence with the specified literal replacement sequence.Method parameters injava.lang with type arguments of typeCharSequenceModifier and TypeMethodDescriptionstaticStringString.join(CharSequence delimiter,Iterable<? extendsCharSequence> elements) Returns a newStringcomposed of copies of theCharSequence elementsjoined together with a copy of thespecifieddelimiter.Constructors injava.lang with parameters of typeCharSequenceModifierConstructorDescriptionStringBuffer(CharSequence seq) Constructs a string buffer that contains the same charactersas the specifiedCharSequence.Constructs a string builder that contains the same charactersas the specifiedCharSequence.Uses ofCharSequence injava.lang.classfile
Methods injava.lang.classfile with parameters of typeCharSequenceModifier and TypeMethodDescriptionstaticTypeKindTypeKind.fromDescriptor(CharSequence s) Returns the type associated with the specified field descriptor.Uses ofCharSequence injava.lang.classfile.constantpool
Subinterfaces ofCharSequence injava.lang.classfile.constantpoolModifier and TypeInterfaceDescriptioninterfaceModels aCONSTANT_UTF8_infoconstant, representing strings, in theconstant pool of aclassfile.Uses ofCharSequence injava.net.http
Methods injava.net.http with parameters of typeCharSequenceModifier and TypeMethodDescriptiondefaultCompletionStage<?> WebSocket.Listener.onText(WebSocket webSocket,CharSequence data, boolean last) A textual data has been received.WebSocket.sendText(CharSequence data, boolean last) Sends textual data with characters from the given character sequence.Uses ofCharSequence injava.nio
Classes injava.nio that implementCharSequenceMethods injava.nio with parameters of typeCharSequenceModifier and TypeMethodDescriptionCharBuffer.append(CharSequence csq) Appends the specified character sequence to thisbuffer (optional operation).CharBuffer.append(CharSequence csq, int start, int end) Appends a subsequence of the specified character sequence to thisbuffer (optional operation).staticCharBufferCharBuffer.wrap(CharSequence csq) Wraps a character sequence into a buffer.staticCharBufferCharBuffer.wrap(CharSequence csq, int start, int end) Wraps a character sequence into a buffer.Uses ofCharSequence injava.nio.charset
Methods injava.nio.charset with parameters of typeCharSequenceModifier and TypeMethodDescriptionbooleanCharsetEncoder.canEncode(CharSequence cs) Tells whether or not this encoder can encode the given charactersequence.Uses ofCharSequence injava.nio.file
Methods injava.nio.file with parameters of typeCharSequenceModifier and TypeMethodDescriptionstaticPathFiles.writeString(Path path,CharSequence csq,Charset cs,OpenOption... options) Write aCharSequence to a file.staticPathFiles.writeString(Path path,CharSequence csq,OpenOption... options) Write aCharSequence to a file.Method parameters injava.nio.file with type arguments of typeCharSequenceModifier and TypeMethodDescriptionstaticPathFiles.write(Path path,Iterable<? extendsCharSequence> lines,Charset cs,OpenOption... options) Write lines of text to a file.staticPathFiles.write(Path path,Iterable<? extendsCharSequence> lines,OpenOption... options) Write lines of text to a file.Uses ofCharSequence injava.text
Methods injava.text with parameters of typeCharSequenceModifier and TypeMethodDescriptionstatic booleanNormalizer.isNormalized(CharSequence src,Normalizer.Form form) Determines if the given sequence of char values is normalized.staticStringNormalizer.normalize(CharSequence src,Normalizer.Form form) Normalize a sequence of char values.Uses ofCharSequence injava.time
Methods injava.time with parameters of typeCharSequenceModifier and TypeMethodDescriptionstaticDurationDuration.parse(CharSequence text) Obtains aDurationfrom a text string such asPnDTnHnMn.nS.staticInstantInstant.parse(CharSequence text) Obtains an instance ofInstantfrom a text string such as2007-12-03T10:15:30.00Z.staticLocalDateLocalDate.parse(CharSequence text) Obtains an instance ofLocalDatefrom a text string such as2007-12-03.staticLocalDateLocalDate.parse(CharSequence text,DateTimeFormatter formatter) Obtains an instance ofLocalDatefrom a text string using a specific formatter.staticLocalDateTimeLocalDateTime.parse(CharSequence text) Obtains an instance ofLocalDateTimefrom a text string such as2007-12-03T10:15:30.staticLocalDateTimeLocalDateTime.parse(CharSequence text,DateTimeFormatter formatter) Obtains an instance ofLocalDateTimefrom a text string using a specific formatter.staticLocalTimeLocalTime.parse(CharSequence text) Obtains an instance ofLocalTimefrom a text string such as10:15.staticLocalTimeLocalTime.parse(CharSequence text,DateTimeFormatter formatter) Obtains an instance ofLocalTimefrom a text string using a specific formatter.staticMonthDayMonthDay.parse(CharSequence text) Obtains an instance ofMonthDayfrom a text string such as--12-03.staticMonthDayMonthDay.parse(CharSequence text,DateTimeFormatter formatter) Obtains an instance ofMonthDayfrom a text string using a specific formatter.staticOffsetDateTimeOffsetDateTime.parse(CharSequence text) Obtains an instance ofOffsetDateTimefrom a text stringsuch as2007-12-03T10:15:30+01:00.staticOffsetDateTimeOffsetDateTime.parse(CharSequence text,DateTimeFormatter formatter) Obtains an instance ofOffsetDateTimefrom a text string using a specific formatter.staticOffsetTimeOffsetTime.parse(CharSequence text) Obtains an instance ofOffsetTimefrom a text string such as10:15:30+01:00.staticOffsetTimeOffsetTime.parse(CharSequence text,DateTimeFormatter formatter) Obtains an instance ofOffsetTimefrom a text string using a specific formatter.staticPeriodPeriod.parse(CharSequence text) Obtains aPeriodfrom a text string such asPnYnMnD.staticYearYear.parse(CharSequence text) Obtains an instance ofYearfrom a text string such as2007.staticYearYear.parse(CharSequence text,DateTimeFormatter formatter) Obtains an instance ofYearfrom a text string using a specific formatter.staticYearMonthYearMonth.parse(CharSequence text) Obtains an instance ofYearMonthfrom a text string such as2007-12.staticYearMonthYearMonth.parse(CharSequence text,DateTimeFormatter formatter) Obtains an instance ofYearMonthfrom a text string using a specific formatter.staticZonedDateTimeZonedDateTime.parse(CharSequence text) Obtains an instance ofZonedDateTimefrom a text string such as2007-12-03T10:15:30+01:00[Europe/Paris].staticZonedDateTimeZonedDateTime.parse(CharSequence text,DateTimeFormatter formatter) Obtains an instance ofZonedDateTimefrom a text string using a specific formatter.Uses ofCharSequence injava.time.format
Methods injava.time.format with parameters of typeCharSequenceModifier and TypeMethodDescriptionDateTimeFormatter.parse(CharSequence text) Fully parses the text producing a temporal object.DateTimeFormatter.parse(CharSequence text,ParsePosition position) Parses the text using this formatter, providing control over the text position.<T> TDateTimeFormatter.parse(CharSequence text,TemporalQuery<T> query) Fully parses the text producing an object of the specified type.DateTimeFormatter.parseBest(CharSequence text,TemporalQuery<?>... queries) Fully parses the text producing an object of one of the specified types.DateTimeFormatter.parseUnresolved(CharSequence text,ParsePosition position) Parses the text using this formatter, without resolving the result, intendedfor advanced use cases.Constructors injava.time.format with parameters of typeCharSequenceModifierConstructorDescriptionDateTimeParseException(String message,CharSequence parsedData, int errorIndex) Constructs a new exception with the specified message.DateTimeParseException(String message,CharSequence parsedData, int errorIndex,Throwable cause) Constructs a new exception with the specified message and cause.Uses ofCharSequence injava.util
Methods injava.util with parameters of typeCharSequenceModifier and TypeMethodDescriptionStringJoiner.add(CharSequence newElement) Adds a copy of the givenCharSequencevalue as the nextelement of theStringJoinervalue.static intHexFormat.fromHexDigits(CharSequence string) Returns theintvalue parsed from a string of up to eight hexadecimal characters.static intHexFormat.fromHexDigits(CharSequence string, int fromIndex, int toIndex) Returns theintvalue parsed from a string range of up to eight hexadecimalcharacters.static longHexFormat.fromHexDigitsToLong(CharSequence string) Returns the long value parsed from a string of up to sixteen hexadecimal characters.static longHexFormat.fromHexDigitsToLong(CharSequence string, int fromIndex, int toIndex) Returns the long value parsed from a string range of up to sixteen hexadecimalcharacters.byte[]HexFormat.parseHex(CharSequence string) Returns a byte array containing hexadecimal values parsed from the string.byte[]HexFormat.parseHex(CharSequence string, int fromIndex, int toIndex) Returns a byte array containing hexadecimal values parsed from a range of the string.StringJoiner.setEmptyValue(CharSequence emptyValue) Sets the sequence of characters to be used when determining the stringrepresentation of thisStringJoinerand no elements have beenadded yet, that is, when it is empty.Constructors injava.util with parameters of typeCharSequenceModifierConstructorDescriptionStringJoiner(CharSequence delimiter) Constructs aStringJoinerwith no characters in it, with noprefixorsuffix, and a copy of the supplieddelimiter.StringJoiner(CharSequence delimiter,CharSequence prefix,CharSequence suffix) Constructs aStringJoinerwith no characters in it using copiesof the suppliedprefix,delimiterandsuffix.Uses ofCharSequence injava.util.regex
Methods injava.util.regex with parameters of typeCharSequenceModifier and TypeMethodDescriptionPattern.matcher(CharSequence input) Creates a matcher that will match the given input against this pattern.static booleanPattern.matches(String regex,CharSequence input) Compiles the given regular expression and attempts to match the giveninput against it.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.Pattern.splitAsStream(CharSequence input) Creates a stream from the given input sequence around matches of thispattern.String[]Pattern.splitWithDelimiters(CharSequence input, int limit) Splits the given input sequence around matches of this pattern andreturns both the strings and the matching delimiters.Uses ofCharSequence injava.util.stream
Methods injava.util.stream that return types with arguments of typeCharSequenceModifier and TypeMethodDescriptionstaticCollector<CharSequence, ?,String> Collectors.joining()Returns aCollectorthat concatenates the input elements into aString, in encounter order.staticCollector<CharSequence, ?,String> Collectors.joining(CharSequence delimiter) Returns aCollectorthat concatenates the input elements,separated by the specified delimiter, in encounter order.staticCollector<CharSequence, ?,String> Collectors.joining(CharSequence delimiter,CharSequence prefix,CharSequence suffix) Returns aCollectorthat concatenates the input elements,separated by the specified delimiter, with the specified prefix andsuffix, in encounter order.Methods injava.util.stream with parameters of typeCharSequenceModifier and TypeMethodDescriptionstaticCollector<CharSequence, ?,String> Collectors.joining(CharSequence delimiter) Returns aCollectorthat concatenates the input elements,separated by the specified delimiter, in encounter order.staticCollector<CharSequence, ?,String> Collectors.joining(CharSequence delimiter,CharSequence prefix,CharSequence suffix) Returns aCollectorthat concatenates the input elements,separated by the specified delimiter, with the specified prefix andsuffix, in encounter order.Uses ofCharSequence injavax.annotation.processing
Methods injavax.annotation.processing with parameters of typeCharSequenceModifier and TypeMethodDescriptionFiler.createClassFile(CharSequence name,Element... originatingElements) Creates a new class file, and returns an object to allowwriting to it.Filer.createResource(JavaFileManager.Location location,CharSequence moduleAndPkg,CharSequence relativeName,Element... originatingElements) Creates a new auxiliary resource file for writing and returns afile object for it.Filer.createSourceFile(CharSequence name,Element... originatingElements) Creates a new source file and returns an object to allowwriting to it.Filer.getResource(JavaFileManager.Location location,CharSequence moduleAndPkg,CharSequence relativeName) Returns an object for reading an existing resource.default voidMessager.printError(CharSequence msg) Prints an error.default voidMessager.printError(CharSequence msg,Element e) Prints an error at the location of the element.voidMessager.printMessage(Diagnostic.Kind kind,CharSequence msg) Prints a message of the specified kind.voidMessager.printMessage(Diagnostic.Kind kind,CharSequence msg,Element e) Prints a message of the specified kind at the location of theelement.voidMessager.printMessage(Diagnostic.Kind kind,CharSequence msg,Element e,AnnotationMirror a) Prints a message of the specified kind at the location of theannotation mirror of the annotated element.voidMessager.printMessage(Diagnostic.Kind kind,CharSequence msg,Element e,AnnotationMirror a,AnnotationValue v) Prints a message of the specified kind at the location of theannotation value inside the annotation mirror of the annotatedelement.default voidMessager.printNote(CharSequence msg) Prints a note.default voidMessager.printNote(CharSequence msg,Element e) Prints a note at the location of the element.default voidMessager.printWarning(CharSequence msg) Prints a warning.default voidMessager.printWarning(CharSequence msg,Element e) Prints a warning at the location of the element.Uses ofCharSequence injavax.lang.model
Methods injavax.lang.model with parameters of typeCharSequenceModifier and TypeMethodDescriptionstatic booleanSourceVersion.isIdentifier(CharSequence name) Returns whether or notnameis a syntactically valididentifier (simple name) or keyword in the latest sourceversion.static booleanSourceVersion.isKeyword(CharSequence s) Returns whether or notsis a keyword, a boolean literal,or the null literal in the latest source version.static booleanSourceVersion.isKeyword(CharSequence s,SourceVersion version) Returns whether or notsis a keyword, a boolean literal,or the null literal in the given source version.static booleanSourceVersion.isName(CharSequence name) Returns whether or notnameis a syntactically validqualified name in the latest source version.static booleanSourceVersion.isName(CharSequence name,SourceVersion version) Returns whether or notnameis a syntactically validqualified name in the given source version.Uses ofCharSequence injavax.lang.model.element
Subinterfaces ofCharSequence injavax.lang.model.elementMethods injavax.lang.model.element with parameters of typeCharSequenceModifier and TypeMethodDescriptionbooleanName.contentEquals(CharSequence cs) Compares this name to the specifiedCharSequence.Uses ofCharSequence injavax.lang.model.util
Methods injavax.lang.model.util with parameters of typeCharSequenceModifier and TypeMethodDescriptiondefaultSet<? extendsPackageElement> Elements.getAllPackageElements(CharSequence name) Returns all package elements with the given canonical name.defaultSet<? extendsTypeElement> Elements.getAllTypeElements(CharSequence name) Returns all type elements with the given canonical name.defaultModuleElementElements.getModuleElement(CharSequence name) Returns a module element given its fully qualified name.Elements.getName(CharSequence cs) Returns a name with the same sequence of characters as theargument.Elements.getPackageElement(CharSequence name) Returns a package given its fully qualified name if the package is uniquelydeterminable in the environment.defaultPackageElementElements.getPackageElement(ModuleElement module,CharSequence name) Returns a package given its fully qualified name, as seen from the given module.Elements.getTypeElement(CharSequence name) Returns a type element given its canonical name if the type element is uniquelydeterminable in the environment.defaultTypeElementElements.getTypeElement(ModuleElement module,CharSequence name) Returns a type element given its canonical name, as seen from the given module.Uses ofCharSequence injavax.swing.text
Classes injavax.swing.text that implementCharSequenceModifier and TypeClassDescriptionclassA segment of a character array representing a fragmentof text.Methods injavax.swing.text that returnCharSequenceModifier and TypeMethodDescriptionSegment.subSequence(int start, int end) Returns aCharSequencethat is a subsequence of this sequence.Uses ofCharSequence injavax.tools
Methods injavax.tools that returnCharSequenceModifier and TypeMethodDescriptionFileObject.getCharContent(boolean ignoreEncodingErrors) Returns the character content of this file object, if available.ForwardingFileObject.getCharContent(boolean ignoreEncodingErrors) SimpleJavaFileObject.getCharContent(boolean ignoreEncodingErrors) Returns the character content of this file object, if available.