package com.vaadin.data.util.converter;
import java.io.Serializable;
-import java.util.Locale;
import java.util.function.Function;
import com.vaadin.data.Binder.Binding;
public Result<MODEL> convertToModel(PRESENTATION value,
ValueContext context);
- default public Result<MODEL> convertToModel(PRESENTATION value,
- Locale locale) {
- return convertToModel(value, new ValueContext(locale));
- }
-
/**
* Converts the given value from presentation type to model type.
* <p>
public PRESENTATION convertToPresentation(MODEL value,
ValueContext context);
- default public PRESENTATION convertToPresentation(MODEL value,
- Locale locale) {
- return convertToPresentation(value, new ValueContext());
- }
-
/**
* Returns a converter that returns its input as-is in both directions.
*