|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CharSeq
A sequence where each element is a character.
Field Summary |
---|
Fields inherited from interface gnu.lists.Sequence |
---|
ATTRIBUTE_VALUE, BOOLEAN_VALUE, CDATA_VALUE, CHAR_VALUE, COMMENT_VALUE, DOCUMENT_VALUE, DOUBLE_VALUE, ELEMENT_VALUE, EOF_VALUE, eofValue, FLOAT_VALUE, INT_S16_VALUE, INT_S32_VALUE, INT_S64_VALUE, INT_S8_VALUE, INT_U16_VALUE, INT_U32_VALUE, INT_U64_VALUE, INT_U8_VALUE, OBJECT_VALUE, PRIM_VALUE, PROCESSING_INSTRUCTION_VALUE, TEXT_BYTE_VALUE |
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)
|
java.lang.CharSequence |
subSequence(int start,
int end)
|
java.lang.String |
toString()
|
void |
writeTo(int start,
int count,
java.io.Writer dest)
Write out (part of) this string. |
void |
writeTo(java.io.Writer str)
|
Methods inherited from interface gnu.lists.Sequence |
---|
elements, fill, get, isEmpty, set, size |
Methods inherited from interface java.util.List |
---|
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, subList, toArray, toArray |
Methods inherited from interface gnu.lists.Consumable |
---|
consume |
Method Detail |
---|
int length()
length
in interface java.lang.CharSequence
char charAt(int index)
charAt
in interface java.lang.CharSequence
void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin)
void setCharAt(int index, char ch)
void fill(char value)
void fill(int fromIndex, int toIndex, char value)
java.lang.CharSequence subSequence(int start, int end)
subSequence
in interface java.lang.CharSequence
void writeTo(int start, int count, java.io.Writer dest) throws java.io.IOException
start
- index of initial character to writecount
- number of characters to writedest
- where to write the characters
java.io.IOException
void writeTo(java.io.Writer str) throws java.io.IOException
java.io.IOException
void consume(int start, int count, Consumer out)
java.lang.String toString()
toString
in interface java.lang.CharSequence
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |