Module is.codion.swing.common.ui
Interface TemporalField.DateTimeParser<T extends Temporal>
- Type Parameters:
T
- the Temporal type
- Enclosing class:
- TemporalField<T extends Temporal>
public static interface TemporalField.DateTimeParser<T extends Temporal>
Parses a Temporal value from text with a provided formatter
-
Method Summary
Modifier and TypeMethodDescriptionparse
(CharSequence text, DateTimeFormatter formatter) Parses the given text with the given formatter
-
Method Details
-
parse
Parses the given text with the given formatter- Parameters:
text
- the text to parseformatter
- the formatter to use- Returns:
- the Temporal value
- Throws:
DateTimeParseException
- if unable to parse the text
-