| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | TruncateFormatter(final int
truncate a string after this index. truncateIndex)The TruncateFormatter truncates a string after the given index and removes trailing whitespaces. |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | getDescription()
Implements abstract org. Returns a description of the formatter. |
| public String | getExampleInput()
Implements abstract org. Returns an example input string of the formatter. |
| public String | getKey()
Implements abstract org. Returns a unique key for the formatter that can be used for its identification |
| public String | getName()
Implements abstract org. Returns a human readable name of the formatter usable for e.g. in the GUI |
| KEY | back to summary |
|---|---|
| private final String KEY | |
| TRUNCATE_AFTER | back to summary |
|---|---|
| private final int TRUNCATE_AFTER | |
| TruncateFormatter | back to summary |
|---|---|
| public TruncateFormatter(final int truncateIndex) The TruncateFormatter truncates a string after the given index and removes trailing whitespaces.
| |
| format | back to summary |
|---|---|
| public String format(final @NonNull String input) Truncates a string after the given index.
| |
| getDescription | back to summary |
|---|---|
| public String getDescription() Implements abstract org. Doc from org. Returns a description of the formatter.
| |
| getExampleInput | back to summary |
|---|---|
| public String getExampleInput() Implements abstract org. Doc from org. Returns an example input string of the formatter. This example is used as input to the formatter to demonstrate its functionality
| |
| getKey | back to summary |
|---|---|
| public String getKey() Implements abstract org. Doc from org. Returns a unique key for the formatter that can be used for its identification
| |
| getName | back to summary |
|---|---|
| public String getName() Implements abstract org. Doc from org. Returns a human readable name of the formatter usable for e.g. in the GUI
| |