Android
android.text
public class

android.text.AlteredCharSequence

java.lang.Object
android.text.AlteredCharSequence GetChars CharSequence

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.

Summary

Public Methods

          char  charAt(int off)
Returns the character at the specified index, with the first character having index zero.
          void  getChars(int start, int end, char[] dest, int off)
Exactly like String.getChars(): copy chars start through end - 1 from this CharSequence into dest beginning at offset destoff.
          int  length()
Returns the number of characters in the sequence.
      static    AlteredCharSequence  make(CharSequence source, char[] sub, int substart, int subend)
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.
          CharSequence  subSequence(int start, int end)
Returns a CharSequence from the start index (inclusive) to the end index (exclusive) of this sequence.
          String  toString()
Returns a string containing a concise, human-readable description of the receiver.
Methods inherited from class java.lang.Object
Methods inherited from interface android.text.GetChars
Methods inherited from interface java.lang.CharSequence

Details

Public Methods

public char charAt(int off)

Returns the character at the specified index, with the first character having index zero.

public void getChars(int start, int end, char[] dest, int off)

Exactly like String.getChars(): copy chars start through end - 1 from this CharSequence into dest beginning at offset destoff.

public int length()

Returns the number of characters in the sequence.

public static AlteredCharSequence make(CharSequence source, char[] sub, int substart, int subend)

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.

public CharSequence subSequence(int start, int end)

Returns a CharSequence from the start index (inclusive) to the end index (exclusive) of this sequence.

public String toString()

Returns a string containing a concise, human-readable description of the receiver.

Returns

  • String a printable representation for the receiver.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48