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.IndentedAppendable
changeIndentationBy
(int indentation) Adjusts the indentation size byindentation
.(package private) JoinDescription.IndentedAppendable
indent()
Appends the indentation according to current size.(package private) JoinDescription.IndentedAppendable
indentBy
(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:
append
in interfaceAppendable
-
append
- Specified by:
append
in interfaceAppendable
-
append
- Specified by:
append
in 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
-