final class IndentStringBuilder extends Object implements Serializable, Appendable, CharSequence
Modifier and Type | Field and Description |
---|---|
private StringBuilder |
builder |
private int |
level |
private boolean |
newline |
private String |
singleIndentation |
Constructor and Description |
---|
IndentStringBuilder() |
IndentStringBuilder(String singleIndentation) |
Modifier and Type | Method and Description |
---|---|
IndentStringBuilder |
append(char c) |
IndentStringBuilder |
append(CharSequence charSequence) |
IndentStringBuilder |
append(CharSequence charSequence,
int i,
int i1) |
IndentStringBuilder |
append(Object o) |
IndentStringBuilder |
append(String s) |
private void |
appendIndentation() |
char |
charAt(int i) |
int |
indent() |
int |
length() |
IndentStringBuilder |
newline() |
int |
newlineAndIndent() |
void |
resetIndentLevel(int level) |
CharSequence |
subSequence(int i,
int i1) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
chars, codePoints
private final StringBuilder builder
private final String singleIndentation
private int level
private boolean newline
public IndentStringBuilder(String singleIndentation)
public IndentStringBuilder()
private void appendIndentation()
public void resetIndentLevel(int level)
public int newlineAndIndent()
public int indent()
public IndentStringBuilder newline()
public IndentStringBuilder append(Object o)
public IndentStringBuilder append(String s)
public IndentStringBuilder append(CharSequence charSequence)
append
in interface Appendable
public IndentStringBuilder append(CharSequence charSequence, int i, int i1)
append
in interface Appendable
public IndentStringBuilder append(char c)
append
in interface Appendable
public String toString()
toString
in interface CharSequence
toString
in class Object
public int length()
length
in interface CharSequence
public char charAt(int i)
charAt
in interface CharSequence
public CharSequence subSequence(int i, int i1)
subSequence
in interface CharSequence
Copyright © 2017. All rights reserved.