Uses of Interface
com.vaadin.flow.data.binder.Result
Packages that use Result
Package
Description
-
Uses of Result in com.vaadin.flow.component.datepicker
Methods in com.vaadin.flow.component.datepicker that return types with arguments of type ResultModifier and TypeMethodDescriptionDatePicker.getFallbackParser()
Gets the parser that is used as a fallback when user input cannot be parsed using the i18n date formats.Method parameters in com.vaadin.flow.component.datepicker with type arguments of type ResultModifier and TypeMethodDescriptionvoid
DatePicker.setFallbackParser
(SerializableFunction<String, Result<LocalDate>> fallbackParser) Sets a parser to handle user input that cannot be parsed using the i18n date formats. -
Uses of Result in com.vaadin.flow.data.binder
Methods in com.vaadin.flow.data.binder that return ResultModifier and TypeMethodDescriptionstatic <R> Result<R>
Returns a failure result wrapping the given error message.<S> Result<S>
Result.flatMap
(SerializableFunction<R, Result<S>> mapper) If this Result has a value, applies the given Result-returning function to the value.default <S> Result<S>
Result.map
(SerializableFunction<R, S> mapper) If this Result has a value, returns a Result of applying the given function to the value.static <R> Result<R>
Result.of
(SerializableSupplier<R> supplier, SerializableFunction<Exception, String> onError) Returns a Result representing the result of invoking the given supplier.static <R> Result<R>
Result.ok
(R value) Returns a successful result wrapping the given value.Method parameters in com.vaadin.flow.data.binder with type arguments of type ResultModifier and TypeMethodDescription<S> Result<S>
Result.flatMap
(SerializableFunction<R, Result<S>> mapper) If this Result has a value, applies the given Result-returning function to the value.Constructors in com.vaadin.flow.data.binder with parameters of type ResultModifierConstructorDescriptionBindingValidationStatus
(Result<TARGET> result, Binder.Binding<?, TARGET> source) Creates a new status change event. -
Uses of Result in com.vaadin.flow.data.converter
Methods in com.vaadin.flow.data.converter that return ResultModifier and TypeMethodDescriptionBigDecimalToDoubleConverter.convertToModel
(BigDecimal value, ValueContext context) BigDecimalToFloatConverter.convertToModel
(BigDecimal value, ValueContext context) BigDecimalToIntegerConverter.convertToModel
(BigDecimal value, ValueContext context) BigDecimalToLongConverter.convertToModel
(BigDecimal value, ValueContext context) Converter.convertToModel
(PRESENTATION value, ValueContext context) Converts the given value from presentation type to model type.DateToLongConverter.convertToModel
(Date value, ValueContext context) DateToSqlDateConverter.convertToModel
(Date value, ValueContext context) DoubleToBigDecimalConverter.convertToModel
(Double value, ValueContext context) FloatToBigDecimalConverter.convertToModel
(Float value, ValueContext context) FloatToDoubleConverter.convertToModel
(Float value, ValueContext context) IntegerToBigDecimalConverter.convertToModel
(Integer value, ValueContext context) IntegerToDoubleConverter.convertToModel
(Integer value, ValueContext context) IntegerToLongConverter.convertToModel
(Integer value, ValueContext context) LocalDateTimeToDateConverter.convertToModel
(LocalDateTime localDate, ValueContext context) LocalDateTimeToInstantConverter.convertToModel
(LocalDateTime localDateTime, ValueContext context) LocalDateToDateConverter.convertToModel
(LocalDate localDate, ValueContext context) LongToBigDecimalConverter.convertToModel
(Long value, ValueContext context) StringToBigDecimalConverter.convertToModel
(String value, ValueContext context) StringToBigIntegerConverter.convertToModel
(String value, ValueContext context) StringToBooleanConverter.convertToModel
(String value, ValueContext context) StringToDateConverter.convertToModel
(String value, ValueContext context) StringToDoubleConverter.convertToModel
(String value, ValueContext context) StringToFloatConverter.convertToModel
(String value, ValueContext context) StringToIntegerConverter.convertToModel
(String value, ValueContext context) StringToLongConverter.convertToModel
(String value, ValueContext context) StringToUuidConverter.convertToModel
(String value, ValueContext context) AbstractStringToNumberConverter.convertToNumber
(String value, ValueContext context) Convert the value to a Number using the given locale andAbstractStringToNumberConverter.getFormat(Locale)
.Method parameters in com.vaadin.flow.data.converter with type arguments of type ResultModifier and TypeMethodDescriptionstatic <P,
M> Converter<P, M> Converter.from
(SerializableFunction<P, Result<M>> toModel, SerializableFunction<M, P> toPresentation) Constructs a converter from a filter and a function.