public class WrappingStringBuilder
extends java.lang.Object
Constructor and Description |
---|
WrappingStringBuilder(int maxLineLength)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
append(int value)
Appends an integer value.
|
void |
append(java.lang.String str)
Appends a word.
|
java.lang.String |
toString()
Returns the concatenated words as a string.
|
public WrappingStringBuilder(int maxLineLength)
maxLineLength
- the maximum line lengthpublic void append(java.lang.String str)
str
- the word to appendpublic void append(int value)
value
- the integer value to appendpublic java.lang.String toString()
toString
in class java.lang.Object