Uses of Interface
java.lang.CharSequence
-
Packages that use CharSequence Package Description com.sun.source.util Provides utilities for operations on abstract syntax trees (AST).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.net.http HTTP Client and WebSocket APIsjava.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, some internationalization support classes, a service loader, properties, random number generation, string parsing and scanning classes, base64 encoding and decoding, a bit array, and several miscellaneous utility classes.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. -
-
Uses of CharSequence in com.sun.source.util
Methods in com.sun.source.util with parameters of type CharSequence Modifier and Type Method Description abstract voidDocTrees. printMessage(Diagnostic.Kind kind, CharSequence msg, DocTree t, DocCommentTree c, CompilationUnitTree root)Prints a message of the specified kind at the location of the tree within the provided compilation unitabstract voidTrees. printMessage(Diagnostic.Kind kind, CharSequence msg, Tree t, CompilationUnitTree root)Prints a message of the specified kind at the location of the tree within the provided compilation unit -
Uses of CharSequence in java.io
Methods in java.io with parameters of type CharSequence Modifier and Type Method Description CharArrayWriterCharArrayWriter. append(CharSequence csq)Appends the specified character sequence to this writer.CharArrayWriterCharArrayWriter. append(CharSequence csq, int start, int end)Appends a subsequence of the specified character sequence to this writer.PrintStreamPrintStream. append(CharSequence csq)Appends the specified character sequence to this output stream.PrintStreamPrintStream. append(CharSequence csq, int start, int end)Appends a subsequence of the specified character sequence to this output stream.PrintWriterPrintWriter. append(CharSequence csq)Appends the specified character sequence to this writer.PrintWriterPrintWriter. append(CharSequence csq, int start, int end)Appends a subsequence of the specified character sequence to this writer.StringWriterStringWriter. append(CharSequence csq)Appends the specified character sequence to this writer.StringWriterStringWriter. append(CharSequence csq, int start, int end)Appends a subsequence of the specified character sequence to this writer.WriterWriter. append(CharSequence csq)Appends the specified character sequence to this writer.WriterWriter. append(CharSequence csq, int start, int end)Appends a subsequence of the specified character sequence to this writer. -
Uses of CharSequence in java.lang
Classes in java.lang that implement CharSequence Modifier and Type Class Description classStringStrings are objects which represent immutable arrays of characters.classStringBufferA thread-safe, mutable sequence of characters.classStringBuilderA mutable sequence of characters.Methods in java.lang that return CharSequence Modifier and Type Method Description CharSequenceCharSequence. subSequence(int start, int end)Returns aCharSequencethat is a subsequence of this sequence.CharSequenceString. subSequence(int start, int end)Has the same result as the substring function, but is present so that String may implement the CharSequence interface.CharSequenceStringBuffer. subSequence(int start, int end)Methods in java.lang with parameters of type CharSequence Modifier and Type Method Description AppendableAppendable. append(CharSequence csq)Appends the specified character sequence to thisAppendable.AppendableAppendable. append(CharSequence csq, int start, int end)Appends a subsequence of the specified character sequence to thisAppendable.StringBufferStringBuffer. append(CharSequence s)Appends the specifiedCharSequenceto this sequence.StringBufferStringBuffer. append(CharSequence s, int start, int end)StringBuilderStringBuilder. append(CharSequence s)StringBuilderStringBuilder. 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 of the specified char sequence.static intCharSequence. compare(CharSequence cs1, CharSequence cs2)Compares twoCharSequenceinstances lexicographically.booleanString. contains(CharSequence sequence)booleanString. contentEquals(CharSequence sequence)Compares the content of the character sequence to this StringStringBufferStringBuffer. insert(int dstOffset, CharSequence s)StringBufferStringBuffer. insert(int dstOffset, CharSequence s, int start, int end)StringBuilderStringBuilder. insert(int dstOffset, CharSequence s)StringBuilderStringBuilder. insert(int dstOffset, CharSequence s, int start, int end)static StringString. join(CharSequence delimiter, CharSequence... elements)Creates a new String by putting each element together joined by the delimiter.static StringString. join(CharSequence delimiter, Iterable<? extends CharSequence> elements)Creates a new String by putting each element together joined by the delimiter.static intCharacter. offsetByCodePoints(CharSequence seq, int index, int codePointOffset)Returns the index within the given char sequence that is offset from the givenindexbycodePointOffsetcode points.static intInteger. parseInt(CharSequence s, int beginIndex, int endIndex, int radix)Parses theCharSequenceargument as a signedintin the specifiedradix, beginning at the specifiedbeginIndexand extending toendIndex - 1.static longLong. parseLong(CharSequence s, int beginIndex, int endIndex, int radix)Parses theCharSequenceargument as a signedlongin the specifiedradix, beginning at the specifiedbeginIndexand extending toendIndex - 1.static intInteger. parseUnsignedInt(CharSequence s, int beginIndex, int endIndex, int radix)Parses theCharSequenceargument as an unsignedintin the specifiedradix, beginning at the specifiedbeginIndexand extending toendIndex - 1.static longLong. parseUnsignedLong(CharSequence s, int beginIndex, int endIndex, int radix)Parses theCharSequenceargument as an unsignedlongin the specifiedradix, beginning at the specifiedbeginIndexand extending toendIndex - 1.StringString. replace(CharSequence sequence1, CharSequence sequence2)Method parameters in java.lang with type arguments of type CharSequence Modifier and Type Method Description static StringString. join(CharSequence delimiter, Iterable<? extends CharSequence> elements)Creates a new String by putting each element together joined by the delimiter.Constructors in java.lang with parameters of type CharSequence Constructor Description StringBuffer(CharSequence seq)Constructs a string buffer that contains the same characters as the specifiedCharSequence.StringBuilder(CharSequence seq)Constructs a string builder that contains the same characters as the specifiedCharSequence. -
Uses of CharSequence in java.net.http
Methods in java.net.http with parameters of type CharSequence Modifier and Type Method Description default CompletionStage<?>WebSocket.Listener. onText(WebSocket webSocket, CharSequence data, boolean last)A textual data has been received.CompletableFuture<WebSocket>WebSocket. sendText(CharSequence data, boolean last)Sends textual data with characters from the given character sequence. -
Uses of CharSequence in java.nio
Classes in java.nio that implement CharSequence Modifier and Type Class Description classCharBufferA char buffer.Methods in java.nio with parameters of type CharSequence Modifier and Type Method Description CharBufferCharBuffer. append(CharSequence csq)Appends the specified character sequence to this buffer (optional operation).CharBufferCharBuffer. append(CharSequence csq, int start, int end)Appends a subsequence of the specified character sequence to this buffer (optional operation).static CharBufferCharBuffer. wrap(CharSequence csq)Wraps a character sequence into a buffer.static CharBufferCharBuffer. wrap(CharSequence csq, int start, int end)Wraps a character sequence into a buffer. -
Uses of CharSequence in java.nio.charset
Methods in java.nio.charset with parameters of type CharSequence Modifier and Type Method Description booleanCharsetEncoder. canEncode(CharSequence cs)Tells whether or not this encoder can encode the given character sequence. -
Uses of CharSequence in java.nio.file
Methods in java.nio.file with parameters of type CharSequence Modifier and Type Method Description static PathFiles. writeString(Path path, CharSequence csq, Charset cs, OpenOption... options)Write a CharSequence to a file.static PathFiles. writeString(Path path, CharSequence csq, OpenOption... options)Write a CharSequence to a file.Method parameters in java.nio.file with type arguments of type CharSequence Modifier and Type Method Description static PathFiles. write(Path path, Iterable<? extends CharSequence> lines, Charset cs, OpenOption... options)Write lines of text to a file.static PathFiles. write(Path path, Iterable<? extends CharSequence> lines, OpenOption... options)Write lines of text to a file. -
Uses of CharSequence in java.text
Methods in java.text with parameters of type CharSequence Modifier and Type Method Description static booleanNormalizer. isNormalized(CharSequence src, Normalizer.Form form)Determines if the given sequence of char values is normalized.static StringNormalizer. normalize(CharSequence src, Normalizer.Form form)Normalize a sequence of char values. -
Uses of CharSequence in java.time
Methods in java.time with parameters of type CharSequence Modifier and Type Method Description static DurationDuration. parse(CharSequence text)Obtains aDurationfrom a text string such asPnDTnHnMn.nS.static InstantInstant. parse(CharSequence text)Obtains an instance ofInstantfrom a text string such as2007-12-03T10:15:30.00Z.static LocalDateLocalDate. parse(CharSequence text)Obtains an instance ofLocalDatefrom a text string such as2007-12-03.static LocalDateLocalDate. parse(CharSequence text, DateTimeFormatter formatter)Obtains an instance ofLocalDatefrom a text string using a specific formatter.static LocalDateTimeLocalDateTime. parse(CharSequence text)Obtains an instance ofLocalDateTimefrom a text string such as2007-12-03T10:15:30.static LocalDateTimeLocalDateTime. parse(CharSequence text, DateTimeFormatter formatter)Obtains an instance ofLocalDateTimefrom a text string using a specific formatter.static LocalTimeLocalTime. parse(CharSequence text)Obtains an instance ofLocalTimefrom a text string such as10:15.static LocalTimeLocalTime. parse(CharSequence text, DateTimeFormatter formatter)Obtains an instance ofLocalTimefrom a text string using a specific formatter.static MonthDayMonthDay. parse(CharSequence text)Obtains an instance ofMonthDayfrom a text string such as--12-03.static MonthDayMonthDay. parse(CharSequence text, DateTimeFormatter formatter)Obtains an instance ofMonthDayfrom a text string using a specific formatter.static OffsetDateTimeOffsetDateTime. parse(CharSequence text)Obtains an instance ofOffsetDateTimefrom a text string such as2007-12-03T10:15:30+01:00.static OffsetDateTimeOffsetDateTime. parse(CharSequence text, DateTimeFormatter formatter)Obtains an instance ofOffsetDateTimefrom a text string using a specific formatter.static OffsetTimeOffsetTime. parse(CharSequence text)Obtains an instance ofOffsetTimefrom a text string such as10:15:30+01:00.static OffsetTimeOffsetTime. parse(CharSequence text, DateTimeFormatter formatter)Obtains an instance ofOffsetTimefrom a text string using a specific formatter.static PeriodPeriod. parse(CharSequence text)Obtains aPeriodfrom a text string such asPnYnMnD.static YearYear. parse(CharSequence text)Obtains an instance ofYearfrom a text string such as2007.static YearYear. parse(CharSequence text, DateTimeFormatter formatter)Obtains an instance ofYearfrom a text string using a specific formatter.static YearMonthYearMonth. parse(CharSequence text)Obtains an instance ofYearMonthfrom a text string such as2007-12.static YearMonthYearMonth. parse(CharSequence text, DateTimeFormatter formatter)Obtains an instance ofYearMonthfrom a text string using a specific formatter.static ZonedDateTimeZonedDateTime. parse(CharSequence text)Obtains an instance ofZonedDateTimefrom a text string such as2007-12-03T10:15:30+01:00[Europe/Paris].static ZonedDateTimeZonedDateTime. parse(CharSequence text, DateTimeFormatter formatter)Obtains an instance ofZonedDateTimefrom a text string using a specific formatter. -
Uses of CharSequence in java.time.format
Methods in java.time.format with parameters of type CharSequence Modifier and Type Method Description TemporalAccessorDateTimeFormatter. parse(CharSequence text)Fully parses the text producing a temporal object.TemporalAccessorDateTimeFormatter. 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.TemporalAccessorDateTimeFormatter. parseBest(CharSequence text, TemporalQuery<?>... queries)Fully parses the text producing an object of one of the specified types.TemporalAccessorDateTimeFormatter. parseUnresolved(CharSequence text, ParsePosition position)Parses the text using this formatter, without resolving the result, intended for advanced use cases.Constructors in java.time.format with parameters of type CharSequence Constructor Description DateTimeParseException(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 of CharSequence in java.util
Methods in java.util with parameters of type CharSequence Modifier and Type Method Description StringJoinerStringJoiner. add(CharSequence newElement)Adds a copy of the givenCharSequencevalue as the next element of theStringJoinervalue.StringJoinerStringJoiner. setEmptyValue(CharSequence emptyValue)Sets the sequence of characters to be used when determining the string representation of thisStringJoinerand no elements have been added yet, that is, when it is empty.Constructors in java.util with parameters of type CharSequence Constructor Description StringJoiner(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 copies of the suppliedprefix,delimiterandsuffix. -
Uses of CharSequence in java.util.regex
Methods in java.util.regex with parameters of type CharSequence Modifier and Type Method Description MatcherPattern. 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 given input against it.MatcherMatcher. 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.Stream<String>Pattern. splitAsStream(CharSequence input)Creates a stream from the given input sequence around matches of this pattern. -
Uses of CharSequence in java.util.stream
Methods in java.util.stream that return types with arguments of type CharSequence Modifier and Type Method Description static Collector<CharSequence,?,String>Collectors. joining()Returns aCollectorthat concatenates the input elements into aString, in encounter order.static Collector<CharSequence,?,String>Collectors. joining(CharSequence delimiter)Returns aCollectorthat 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 aCollectorthat concatenates the input elements, separated by the specified delimiter, with the specified prefix and suffix, in encounter order.Methods in java.util.stream with parameters of type CharSequence Modifier and Type Method Description static Collector<CharSequence,?,String>Collectors. joining(CharSequence delimiter)Returns aCollectorthat 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 aCollectorthat concatenates the input elements, separated by the specified delimiter, with the specified prefix and suffix, in encounter order. -
Uses of CharSequence in javax.annotation.processing
Methods in javax.annotation.processing with parameters of type CharSequence Modifier and Type Method Description JavaFileObjectFiler. createClassFile(CharSequence name, Element... originatingElements)Creates a new class file, and returns an object to allow writing to it.FileObjectFiler. createResource(JavaFileManager.Location location, CharSequence moduleAndPkg, CharSequence relativeName, Element... originatingElements)Creates a new auxiliary resource file for writing and returns a file object for it.JavaFileObjectFiler. createSourceFile(CharSequence name, Element... originatingElements)Creates a new source file and returns an object to allow writing to it.FileObjectFiler. getResource(JavaFileManager.Location location, CharSequence moduleAndPkg, CharSequence relativeName)Returns an object for reading an existing resource.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 the element.voidMessager. printMessage(Diagnostic.Kind kind, CharSequence msg, Element e, AnnotationMirror a)Prints a message of the specified kind at the location of the annotation 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 the annotation value inside the annotation mirror of the annotated element. -
Uses of CharSequence in javax.lang.model
Methods in javax.lang.model with parameters of type CharSequence Modifier and Type Method Description static booleanSourceVersion. isIdentifier(CharSequence name)Returns whether or notnameis a syntactically valid identifier (simple name) or keyword in the latest source version.static booleanSourceVersion. isKeyword(CharSequence s)Returns whether or notsis a keyword, boolean literal, or null literal in the latest source version.static booleanSourceVersion. isKeyword(CharSequence s, SourceVersion version)Returns whether or notsis a keyword, boolean literal, or null literal in the given source version.static booleanSourceVersion. isName(CharSequence name)Returns whether or notnameis a syntactically valid qualified name in the latest source version.static booleanSourceVersion. isName(CharSequence name, SourceVersion version)Returns whether or notnameis a syntactically valid qualified name in the given source version. -
Uses of CharSequence in javax.lang.model.element
Subinterfaces of CharSequence in javax.lang.model.element Modifier and Type Interface Description interfaceNameAn immutable sequence of characters.Methods in javax.lang.model.element with parameters of type CharSequence Modifier and Type Method Description booleanName. contentEquals(CharSequence cs)Compares this name to the specifiedCharSequence. -
Uses of CharSequence in javax.lang.model.util
Methods in javax.lang.model.util with parameters of type CharSequence Modifier and Type Method Description default Set<? extends PackageElement>Elements. getAllPackageElements(CharSequence name)Returns all package elements with the given canonical name.default Set<? extends TypeElement>Elements. getAllTypeElements(CharSequence name)Returns all type elements with the given canonical name.default ModuleElementElements. getModuleElement(CharSequence name)Returns a module element given its fully qualified name.NameElements. getName(CharSequence cs)Return a name with the same sequence of characters as the argument.PackageElementElements. getPackageElement(CharSequence name)Returns a package given its fully qualified name if the package is unique in the environment.default PackageElementElements. getPackageElement(ModuleElement module, CharSequence name)Returns a package given its fully qualified name, as seen from the given module.TypeElementElements. getTypeElement(CharSequence name)Returns a type element given its canonical name if the type element is unique in the environment.default TypeElementElements. getTypeElement(ModuleElement module, CharSequence name)Returns a type element given its canonical name, as seen from the given module. -
Uses of CharSequence in javax.swing.text
Classes in javax.swing.text that implement CharSequence Modifier and Type Class Description classSegmentA segment of a character array representing a fragment of text.Methods in javax.swing.text that return CharSequence Modifier and Type Method Description CharSequenceSegment. subSequence(int start, int end)Returns aCharSequencethat is a subsequence of this sequence. -
Uses of CharSequence in javax.tools
Methods in javax.tools that return CharSequence Modifier and Type Method Description CharSequenceFileObject. getCharContent(boolean ignoreEncodingErrors)Returns the character content of this file object, if available.CharSequenceForwardingFileObject. getCharContent(boolean ignoreEncodingErrors)CharSequenceSimpleJavaFileObject. getCharContent(boolean ignoreEncodingErrors)This implementation always throws UnsupportedOperationException.
-