Name
java.lang.CharSequence
Description
Defines an interface for read-only access so that regular expression patterns may be applied to a sequence of characters.
Methods
char charAt(int
index
)
Return the character at the zero-based position
index
.int length( )
Return the number of characters in the sequence.
CharSequence subSequence(int
start
, int
end
)
Return a subsequence, including the
start
index, and excluding theend
index.String toString( )
Return a
String
representation of the sequence.
Get Regular Expression Pocket Reference, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.