Package io.github.qishr.cascara.common.util
Class Column
java.lang.Object
io.github.qishr.cascara.common.util.CommandLine.Help.Column
Enclosing Class:
io.github.qishr.cascara.common.util.CommandLine.Help
public static class Column
Columns define the width, indent (leading number of spaces in a column before the value) and Overflow policy of a column in a TextTable.
Field Summary
| Modifier and Type | Field | Description |
|---|---|---|
| public int | indent | Indent (number of empty spaces at the start of the column preceding the text value) |
| public final Overflow | overflow | Policy that determines how to handle values larger than the column width. |
| public final int | width | Column width in characters |
Constructor Summary
| Constructor | Description |
|---|---|
| Column(int width, int indent, Overflow overflow) |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| public boolean | equals(Object obj) | |
| public int | hashCode() | |
| public String | toString() |
Field Details
indent
public int indent
Indent (number of empty spaces at the start of the column preceding the text value)
overflow
public final Overflow overflow
Policy that determines how to handle values larger than the column width.
width
public final int width
Column width in characters
Method Details
equals
public boolean equals(Object obj)
hashCode
public int hashCode()
toString
public String toString()