T
- The type of the parsing result.public interface Parser<T,U>
U
to an output of type T
.Modifier and Type | Method and Description |
---|---|
T |
parse(U input)
Parses an input of type
String to an output of type T . |
T parse(U input) throws ParseException
String
to an output of type T
.input
- The input of type U
to parse.T
as a parsing result.ParseException
- if the input can not be parsed to the output type.Copyright © 2019. All rights reserved.