TrimConversion#revert(String) implements the same behavior of TrimConversion#execute(String). Null inputs produce null outputs.
| Modifier and Type | Field and Description |
|---|---|
| private final int |
| Access | Constructor and Description |
|---|---|
| public | TrimConversion()
Creates a trim conversion that removes leading and trailing whitespaces of any input String. |
| public | TrimConversion(int
the maximum number of characters of any String returned by this conversion. length)Creates a trim-to-length conversion that limits the length of any resulting String. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the input String without leading and trailing white spaces, or null if the input is null.the String to be trimmed input)Implements com. |
| public String | Returns: the input String without leading and trailing white spaces, or null if the input is null.the String to be trimmed input)Implements com. |
| length | back to summary |
|---|---|
| private final int length | |
| TrimConversion | back to summary |
|---|---|
| public TrimConversion() Creates a trim conversion that removes leading and trailing whitespaces of any input String. | |
| TrimConversion | back to summary |
|---|---|
| public TrimConversion(int length) Creates a trim-to-length conversion that limits the length of any resulting String. Input Strings are trimmed, and if the resulting String has more characters than the given limit, any characters over the given limit will be discarded.
| |
| execute | back to summary |
|---|---|
| public String execute(String input) Implements com. Removes leading and trailing white spaces from the input and returns the result.
Equivalent to | |
| revert | back to summary |
|---|---|
| public String revert(String input) Implements com. Removes leading and trailing white spaces from the input and returns the result.
Equivalent to | |