gnu.lists
Interface CharSeq
public
interface
CharSeq
extends CharSequence, Sequence
A sequence where each element is a character.
Method Summary |
char | charAt(int index) |
void | consume(int start, int count, Consumer out) |
void | fill(char value) Set all the elements to a given character. |
void | fill(int fromIndex, int toIndex, char value) |
void | getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin) Copy characters into a destination buffer.
|
int | length() Get length of string, in characters.
|
void | setCharAt(int index, char ch) |
CharSequence | subSequence(int start, int end) |
String | toString() |
void | writeTo(int start, int count, Writer dest)
Write out (part of) this string. |
void | writeTo(Writer str) |
public char charAt(int index)
public void consume(int start, int count,
Consumer out)
public void fill(char value)
Set all the elements to a given character.
public void fill(int fromIndex, int toIndex, char value)
public void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin)
Copy characters into a destination buffer.
Same interface as java.lang.String's getChars.
public int length()
Get length of string, in characters.
Synonym for size(), for compatibility with String and StringBuffer.
public void setCharAt(int index, char ch)
public CharSequence subSequence(int start, int end)
public String toString()
public void writeTo(int start, int count, Writer dest)
Write out (part of) this string.
Parameters: start index of initial character to write count number of characters to write dest where to write the characters
public void writeTo(Writer str)