public final class Splitting extends Object
String
splitting in CLI tools.
Typical use case is to extract descriptors and IDs from their String representation.Modifier and Type | Method and Description |
---|---|
static Function<String,String> |
createSplittingFunction(String split)
Create splitting function.
|
static Function<String,String> |
createSplittingFunctionOrNull(String splitOrNull)
Create splitting function or null.
|
static String |
getSplittersHelpMessage()
Help message.
|
public static String getSplittersHelpMessage()
public static Function<String,String> createSplittingFunction(String split)
split
- Splitter specification, conform to getSplittersHelpMessage()
IllegalArgumentException
- Exceptions from underlying reflection calls are delegatedpublic static Function<String,String> createSplittingFunctionOrNull(String splitOrNull)
splitOrNull
- Splitter specification, conform to getSplittersHelpMessage()
or null
null
when value of splitter specification is null
IllegalArgumentException
- Exceptions from underlying reflection calls are delegated