Class TextIOUtils.EmptyStringParser<T>
- java.lang.Object
-
- de.julielab.jcore.pipeline.builder.cli.util.TextIOUtils.EmptyStringParser<T>
-
- Type Parameters:
T-
- Enclosing class:
- TextIOUtils
public static class TextIOUtils.EmptyStringParser<T> extends Object implements Function<String,org.beryx.textio.InputReader.ParseResult<Object>>
A textIO parser to use withTextIO.newGenericInputReader(Function). It will return null if an empty value is input (i.e. the user did immediately hit return) or the value delivered by a converter otherwise.
-
-
Field Summary
Fields Modifier and Type Field Description static ObjectEMPTY_VALUE
-
Constructor Summary
Constructors Constructor Description EmptyStringParser(Function<String,T> converter, String typeName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.beryx.textio.InputReader.ParseResult<Object>apply(String s)
-
-
-
Field Detail
-
EMPTY_VALUE
public static final Object EMPTY_VALUE
-
-