Package org.linkki.core.ui.converters
Class TwoDigitYearLocalDateConverter
- java.lang.Object
-
- org.linkki.core.ui.converters.TwoDigitYearLocalDateConverter
-
- All Implemented Interfaces:
com.vaadin.flow.data.converter.Converter<LocalDate,LocalDate>,Serializable
public class TwoDigitYearLocalDateConverter extends Object implements com.vaadin.flow.data.converter.Converter<LocalDate,LocalDate>
ConvertsLocalDatetoLocalDatewhile recalculating two digit years into four digit years based on the -80 / +20 rule during the convertToModel conversion. E.g. 19/01/01 will be converted to 2019/01/01 and 90/01/01 to 1990/01/01.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TwoDigitYearLocalDateConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.vaadin.flow.data.binder.Result<LocalDate>convertToModel(LocalDate value, com.vaadin.flow.data.binder.ValueContext context)LocalDateconvertToPresentation(LocalDate value, com.vaadin.flow.data.binder.ValueContext context)
-