org.freecompany.util.text
Interface UnicodeSequence

All Superinterfaces:
java.lang.CharSequence
All Known Implementing Classes:
CharSequenceWrapper

public interface UnicodeSequence
extends java.lang.CharSequence


Method Summary
 int codePointAt(int index)
          Decodes the code point at the specified index in this sequence.
 int codePointCount()
          Returns a count of the total number of Unicode code points in this character sequence.
 
Methods inherited from interface java.lang.CharSequence
charAt, length, subSequence, toString
 

Method Detail

codePointCount

int codePointCount()
Returns a count of the total number of Unicode code points in this character sequence.

Returns:
the number of code points.

codePointAt

int codePointAt(int index)
Decodes the code point at the specified index in this sequence. This method throws an index of out bounds exception in the case of an invalid index. The valid range of arguments is zero to codePointCount(). If this sequence is zero length this method will always fail.

Parameters:
index - the index of the code point to decode and return.
Returns:
the code point at the selected index.