| Modifier and Type | Field and Description |
|---|---|
| public static final FieldAlignment | CENTER
Centralizes values |
| public static final FieldAlignment | LEFT
Aligns values to the left |
| public static final FieldAlignment | RIGHT
Aligns values to the right |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the number of whites paces to introduce in before the value to make it align as specified.the total length available to write for a given field totalLength, int the length of a value that will be written to the field lengthToWrite)Calculates how many whites paces to introduce before a value so it is printed as specified by the alignment type. |
| public static FieldAlignment | |
| public static FieldAlignment[] |
| CENTER | back to summary |
|---|---|
| public static final FieldAlignment CENTER Centralizes values | |
| LEFT | back to summary |
|---|---|
| public static final FieldAlignment LEFT Aligns values to the left | |
| RIGHT | back to summary |
|---|---|
| public static final FieldAlignment RIGHT Aligns values to the right | |
| FieldAlignment | back to summary |
|---|---|
| private FieldAlignment() | |
| calculatePadding | back to summary |
|---|---|
| public int calculatePadding(int totalLength, int lengthToWrite) Calculates how many whites paces to introduce before a value so it is printed as specified by the alignment type.
| |
| valueOf | back to summary |
|---|---|
| public static FieldAlignment valueOf(String name) | |
| values | back to summary |
|---|---|
| public static FieldAlignment[] values() | |