public class StringUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
formatAsId(boolean shorten,
java.lang.String... strings)
Formats the specified strings into a string that can be used as an ID in, e.g., a yaml file.
|
public static java.lang.String formatAsId(boolean shorten,
java.lang.String... strings)
_ as delimiter.shorten - Whether the ID should be shortened. That is, from each element of the strings only
the first char will be used - except for the last element.strings - The strings to be formatted as ID. Will be appended to each other.