|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.util.string.PrependingStringBuffer
public class PrependingStringBuffer
This is a prepending stringbuffer optimized for constantly prepending strings to the front of the buffer.
| Constructor Summary | |
|---|---|
PrependingStringBuffer()
Default constructor, the internal initial buffer size will be 16 |
|
PrependingStringBuffer(int size)
Constructs this PrependingStringBuffer with the given buffer size. |
|
PrependingStringBuffer(String start)
Constructs and direct inserts the given string. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
int |
hashCode()
|
int |
length()
Returns the size of this PrependingStringBuffer |
PrependingStringBuffer |
prepend(char ch)
Prepends one char to this PrependingStringBuffer |
PrependingStringBuffer |
prepend(String str)
Prepends the string to this PrependingStringBuffer |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PrependingStringBuffer()
public PrependingStringBuffer(int size)
size - The initial size of the buffer.public PrependingStringBuffer(String start)
start - The string that is directly inserted.| Method Detail |
|---|
public PrependingStringBuffer prepend(char ch)
ch - The char that will be prepended
public PrependingStringBuffer prepend(String str)
str - The string that will be prepended
public int length()
public String toString()
toString in class ObjectObject.toString()public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||