Package org.beryx.textio
Class InputReader.ParseResult<T>
- java.lang.Object
-
- org.beryx.textio.InputReader.ParseResult<T>
-
- Type Parameters:
T
-
- Enclosing class:
- InputReader<T,B extends InputReader<T,B>>
public static class InputReader.ParseResult<T> extends java.lang.Object
A holder object returned by theInputReader.parse(String)
method, containing the parsed value and/or the error messages.
-
-
Constructor Summary
Constructors Constructor Description ParseResult(T value)
ParseResult(T value, java.lang.String... errorMessages)
ParseResult(T value, java.util.List<java.lang.String> errorMessages)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
getErrorMessages()
T
getValue()
-
-
-
Method Detail
-
getValue
public T getValue()
-
getErrorMessages
public java.util.List<java.lang.String> getErrorMessages()
-
-