public final class AppendableCharSequence extends Object implements CharSequence, Appendable
Constructor and Description |
---|
AppendableCharSequence(int length) |
Modifier and Type | Method and Description |
---|---|
AppendableCharSequence |
append(char c) |
AppendableCharSequence |
append(CharSequence csq) |
AppendableCharSequence |
append(CharSequence csq,
int start,
int end) |
char |
charAt(int index) |
int |
length() |
void |
reset()
Reset the
AppendableCharSequence . |
AppendableCharSequence |
subSequence(int start,
int end) |
String |
substring(int start,
int end)
Create a new
String from the given start to end. |
String |
toString() |
public int length()
length
in interface CharSequence
public char charAt(int index)
charAt
in interface CharSequence
public AppendableCharSequence subSequence(int start, int end)
subSequence
in interface CharSequence
public AppendableCharSequence append(char c)
append
in interface Appendable
public AppendableCharSequence append(CharSequence csq)
append
in interface Appendable
public AppendableCharSequence append(CharSequence csq, int start, int end)
append
in interface Appendable
public void reset()
AppendableCharSequence
. Be aware this will only reset the current internal position and not
shrink the internal char array.public String toString()
toString
in interface CharSequence
toString
in class Object
Copyright © 2008-2016 The Netty Project. All Rights Reserved.