java.lang.Object | |
↳ | android.text.AlteredCharSequence |
An AlteredCharSequence is a CharSequence that is largely mirrored from another CharSequence, except that a specified range of characters are mirrored from a different char array instead.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Returns the character at
index
.
|
||||||||||
|
Exactly like String.getChars(): copy chars
start
through
end - 1
from this CharSequence into
dest
beginning at offset
destoff
.
|
||||||||||
|
Returns the number of characters in this sequence.
|
||||||||||
|
Create an AlteredCharSequence whose text (and possibly spans)
are mirrored from
source
, except that the range of
offsets
substart
inclusive to
subend
exclusive
are mirrored instead from
sub
, beginning at offset 0.
|
||||||||||
|
Returns a
CharSequence
from the
start
index (inclusive)
to the
end
index (exclusive) of this sequence.
|
||||||||||
|
Returns a string containing a concise, human-readable description of this
object.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
|||||||||||
From interface
android.text.GetChars
|
|||||||||||
From interface
java.lang.CharSequence
|
Exactly like String.getChars(): copy chars
start
through
end - 1
from this CharSequence into
dest
beginning at offset
destoff
.
Returns the number of characters in this sequence.
Create an AlteredCharSequence whose text (and possibly spans)
are mirrored from
source
, except that the range of
offsets
substart
inclusive to
subend
exclusive
are mirrored instead from
sub
, beginning at offset 0.
Returns a
CharSequence
from the
start
index (inclusive)
to the
end
index (exclusive) of this sequence.
start | the start offset of the sub-sequence. It is inclusive, that is, the index of the first character that is included in the sub-sequence. |
---|---|
end | the end offset of the sub-sequence. It is exclusive, that is, the index of the first character after those that are included in the sub-sequence |
Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
getClass().getName() + '@' + Integer.toHexString(hashCode())
See
Writing a useful
toString
method
if you intend implementing your own
toString
method.