public class Indenter extends Object
| Modifier and Type | Method and Description |
|---|---|
Indenter |
decreaseIndent(int decrease)
Decreases indentation length.
|
String |
getIndentString()
Creates indent string based on current indent size.
|
Indenter |
increaseIndent(int increase)
Increases indentation length.
|
int |
indent()
Returns current indentation length.
|
Indenter |
setIndent(int indentLength)
Increases indentation length.
|
public int indent()
public Indenter setIndent(int indentLength)
indentLength - new indent lengthIllegalArgumentException - if indentLength is negative.public Indenter increaseIndent(int increase)
increase - length to increase by.IllegalArgumentException - if increase is negative.public Indenter decreaseIndent(int decrease)
decrease - length to decrease byIllegalArgumentException - if decrease is negative, or if decrease is greater than
current indentation length.public String getIndentString()
Copyright © 2021. All Rights Reserved.