Package org.linkki.core.ui.converters
Class NullHandlingConverterWrapper<PRESENTATION,MODEL>
- java.lang.Object
-
- org.linkki.core.ui.converters.NullHandlingConverterWrapper<PRESENTATION,MODEL>
-
- All Implemented Interfaces:
com.vaadin.flow.data.converter.Converter<PRESENTATION,MODEL>,Serializable
public class NullHandlingConverterWrapper<PRESENTATION,MODEL> extends Object implements com.vaadin.flow.data.converter.Converter<PRESENTATION,MODEL>
Wraps a converter and returns anerrorif the wrapped converter would returnnullas the model value.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NullHandlingConverterWrapper(com.vaadin.flow.data.converter.Converter<PRESENTATION,MODEL> converter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.vaadin.flow.data.binder.Result<MODEL>convertToModel(PRESENTATION value, com.vaadin.flow.data.binder.ValueContext context)PRESENTATIONconvertToPresentation(MODEL value, com.vaadin.flow.data.binder.ValueContext context)
-
-
-
Constructor Detail
-
NullHandlingConverterWrapper
public NullHandlingConverterWrapper(com.vaadin.flow.data.converter.Converter<PRESENTATION,MODEL> converter)
-
-
Method Detail
-
convertToModel
public com.vaadin.flow.data.binder.Result<MODEL> convertToModel(PRESENTATION value, com.vaadin.flow.data.binder.ValueContext context)
- Specified by:
convertToModelin interfacecom.vaadin.flow.data.converter.Converter<PRESENTATION,MODEL>
-
convertToPresentation
public PRESENTATION convertToPresentation(MODEL value, com.vaadin.flow.data.binder.ValueContext context)
- Specified by:
convertToPresentationin interfacecom.vaadin.flow.data.converter.Converter<PRESENTATION,MODEL>
-
-