Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.adfnmc.java.lang
Interface CharSequence

All Known Implementing Classes:
StringBuilder

public interface CharSequence

The CharSequence interface represents an ordered set of characters and the functions to probe them.


Method Summary
 char charAt(int index)
          Answers the character at the specified index (0-based indexing).
 int length()
          Answers the number of characters in the sequence.
 CharSequence subSequence(int start, int end)
          Answers a CharSequence from the start index to the end index of this sequence.
 java.lang.String toString()
          Answers a String with the same characters and ordering of this CharSequence
 

Method Detail

length

int length()
Answers the number of characters in the sequence.

Returns:
the number of characters in the sequence

charAt

char charAt(int index)
Answers the character at the specified index (0-based indexing).

Parameters:
index - - of the character to return
Returns:
character indicated by index
Throws:
java.lang.IndexOutOfBoundsException - when index < 0 or index >= the length of the CharSequence

subSequence

CharSequence subSequence(int start,
                         int end)
Answers a CharSequence from the start index to the end index of this sequence.

Parameters:
start - -- index of the start of the sub-sequence to return
end - -- index of the end of the sub-sequence to return
Returns:
the sub sequence from start to end
Throws:
java.lang.IndexOutOfBoundsException - when 1. either index is below 0 2. either index >= this.length() 3. start > end

toString

java.lang.String toString()
Answers a String with the same characters and ordering of this CharSequence

Overrides:
toString in class java.lang.Object
Returns:
a String based on the CharSequence

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.