|
|||||||||
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, EOF_VALUE, eofValue, FLOAT_VALUE, GROUP_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(java.lang.Appendable dest)
|
void |
writeTo(int start,
int count,
java.lang.Appendable dest)
Append a specified subsequence to an Appendable . |
Methods inherited from interface gnu.lists.Sequence |
---|
elements, fill, get, isEmpty, 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, set, 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.lang.Appendable dest) throws java.io.IOException
Appendable
.
An allowable implementation is:
dest.append(this, start, start+count)
.
Hence implementors of Appendable
should avoid calling
writeTo
- though they can call getChars
.
java.io.IOException
void writeTo(java.lang.Appendable dest) 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 |