Module is.codion.swing.common.ui
Interface TemporalField.DateTimeParser<T extends Temporal>
- Type Parameters:
T- the Temporal type
- Enclosing class:
TemporalField<T extends Temporal>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
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
-