GetChars
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
Editable |
This is the interface for text whose content and markup
can be changed (as opposed
to immutable text like Strings). |
SpannableString |
This is the class for text whose content is immutable but to which
markup objects can be attached and detached. |
SpannableStringBuilder |
This is the class for text whose content and markup can both be changed. |
SpannedString |
This is the class for text whose content and markup are immutable. |
|
Please implement this interface if your CharSequence has a
getChars() method like the one in String that is faster than
calling charAt() multiple times.
Public Method Summary
abstract
void
|
getChars(int start, int end, char[] dest, int destoff)
Exactly like String.getChars(): copy chars start
through end - 1 from this CharSequence into dest
beginning at offset destoff .
|
Inherited Method Summary
From interface
java.lang.CharSequence
abstract
char
|
charAt(int arg0)
|
IntStream
|
chars()
|
IntStream
|
codePoints()
|
abstract
int
|
length()
|
abstract
CharSequence
|
subSequence(int arg0, int arg1)
|
abstract
String
|
toString()
|
Public Methods
public
abstract
void
getChars
(int start, int end, char[] dest, int destoff)
Exactly like String.getChars(): copy chars start
through end - 1
from this CharSequence into dest
beginning at offset destoff
.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-04-08 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]