Package org.assertj.core.description
Class JoinDescription.IndentedAppendable
java.lang.Object
org.assertj.core.description.JoinDescription.IndentedAppendable
- All Implemented Interfaces:
Appendable
- Enclosing class:
JoinDescription
The wrapper for
StringBuilder aware of indentation.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappend(char c) append(CharSequence charSequence) append(CharSequence charSequence, int start, int end) (package private) JoinDescription.IndentedAppendablechangeIndentationBy(int indentation) Adjusts the indentation size byindentation.(package private) JoinDescription.IndentedAppendableindent()Appends the indentation according to current size.(package private) JoinDescription.IndentedAppendableindentBy(int indentation) Shortcut method fromchangeIndentationBy(int)andindent()toString()
-
Field Details
-
stringBuilder
-
currentIndentation
private int currentIndentation
-
-
Constructor Details
-
IndentedAppendable
IndentedAppendable(StringBuilder stringBuilder)
-
-
Method Details
-
append
- Specified by:
appendin interfaceAppendable
-
append
- Specified by:
appendin interfaceAppendable
-
append
- Specified by:
appendin interfaceAppendable
-
changeIndentationBy
Adjusts the indentation size byindentation.- Parameters:
indentation- The indentation adjustment.- Returns:
- a this instance.
-
indent
JoinDescription.IndentedAppendable indent()Appends the indentation according to current size.- Returns:
- a this instance.
-
indentBy
Shortcut method fromchangeIndentationBy(int)andindent()- Parameters:
indentation- The indentation adjustment.- Returns:
- a this instance.
-
toString
-