T - public static class TextIOUtils.EmptyStringParser<T> extends Object implements java.util.function.Function<String,org.beryx.textio.InputReader.ParseResult<Object>>
TextIO.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.| Modifier and Type | Field and Description |
|---|---|
static Object |
EMPTY_VALUE |
| Constructor and Description |
|---|
EmptyStringParser(java.util.function.Function<String,T> converter,
String typeName) |
| Modifier and Type | Method and Description |
|---|---|
org.beryx.textio.InputReader.ParseResult<Object> |
apply(String s) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitandThen, compose, identitypublic static final Object EMPTY_VALUE
public EmptyStringParser(java.util.function.Function<String,T> converter, String typeName)
public org.beryx.textio.InputReader.ParseResult<Object> apply(String s)
apply in interface java.util.function.Function<String,org.beryx.textio.InputReader.ParseResult<Object>>Copyright © 2018 JULIE Lab, Germany. All rights reserved.