T - typepublic interface StringParser<T>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
StringParser.Parse
Mark a constructor having a String as parameter to be able to parse a String.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
parse(Class<T> type,
String string)
Parse a string.
|
static <T> T |
parse(Class<T> type,
StringFormat format,
String string)
Parse a string.
|
T |
parse(String string)
Parse from a String into type T.
|
T parse(String string) throws ParseException
ParseExceptionstatic <T> T parse(Class<T> type, StringFormat format, String string) throws ParseException
IllegalArgumentException - if the class cannot be instantiatedParseException - if parsing failedstatic <T> T parse(Class<T> type, String string)
IllegalArgumentException - in case the parse method invocation failedCopyright © 2019. All rights reserved.