IT. Expert System.

Android Reference

AlteredCharSequence


android.text

Class AlteredCharSequence

  • All Implemented Interfaces:
    GetChars, CharSequence


    public class AlteredCharSequence
    extends Object
    implements CharSequence, GetChars
    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.
    • Method Summary

      Methods
      Modifier and Type Method and Description
      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 this 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 this object.
    • Method Detail

      • make

        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.
      • charAt

        public char charAt(int off)
        Description copied from interface: CharSequence
        Returns the character at the specified index, with the first character having index zero.
        Specified by:
        charAt in interface CharSequence
        Parameters:
        off - the index of the character to return.
        Returns:
        the requested character.
      • length

        public int length()
        Description copied from interface: CharSequence
        Returns the number of characters in this sequence.
        Specified by:
        length in interface CharSequence
        Returns:
        the number of characters.
      • subSequence

        public CharSequence subSequence(int start,
                               int end)
        Description copied from interface: CharSequence
        Returns a CharSequence from the start index (inclusive) to the end index (exclusive) of this sequence.
        Specified by:
        subSequence in interface CharSequence
        Parameters:
        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:
        the requested sub-sequence.
      • getChars

        public void getChars(int start,
                    int end,
                    char[] dest,
                    int off)
        Description copied from interface: GetChars
        Exactly like String.getChars(): copy chars start through end - 1 from this CharSequence into dest beginning at offset destoff.
        Specified by:
        getChars in interface GetChars
      • toString

        public String toString()
        Description copied from class: Object
        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.

        Specified by:
        toString in interface CharSequence
        Overrides:
        toString in class Object
        Returns:
        a printable representation of this object.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 302 / 158778316. Delta: 0.02839 с