Package org.assertj.core.description
Class JoinDescription.IndentedAppendable
- java.lang.Object
-
- org.assertj.core.description.JoinDescription.IndentedAppendable
-
- All Implemented Interfaces:
java.lang.Appendable
- Enclosing class:
- JoinDescription
private static class JoinDescription.IndentedAppendable extends java.lang.Object implements java.lang.AppendableThe wrapper forStringBuilderaware of indentation.
-
-
Field Summary
Fields Modifier and Type Field Description private intcurrentIndentationprivate java.lang.StringBuilderstringBuilder
-
Constructor Summary
Constructors Constructor Description IndentedAppendable(java.lang.StringBuilder stringBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JoinDescription.IndentedAppendableappend(char c)JoinDescription.IndentedAppendableappend(java.lang.CharSequence charSequence)JoinDescription.IndentedAppendableappend(java.lang.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()java.lang.StringtoString()
-
-
-
Method Detail
-
append
public JoinDescription.IndentedAppendable append(java.lang.CharSequence charSequence)
- Specified by:
appendin interfacejava.lang.Appendable
-
append
public JoinDescription.IndentedAppendable append(java.lang.CharSequence charSequence, int start, int end)
- Specified by:
appendin interfacejava.lang.Appendable
-
append
public JoinDescription.IndentedAppendable append(char c)
- Specified by:
appendin interfacejava.lang.Appendable
-
changeIndentationBy
JoinDescription.IndentedAppendable changeIndentationBy(int indentation)
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
JoinDescription.IndentedAppendable indentBy(int indentation)
Shortcut method fromchangeIndentationBy(int)andindent()- Parameters:
indentation- The indentation adjustment.- Returns:
- a this instance.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-