Package | Description |
---|---|
com.vaadin.flow.data.binder | |
com.vaadin.flow.data.converter |
Modifier and Type | Method and Description |
---|---|
static <R> Result<R> |
Result.error(String message)
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.
|
Modifier and Type | Method and Description |
---|---|
<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.
|
Constructor and Description |
---|
BindingValidationStatus(Result<TARGET> result,
Binder.Binding<?,TARGET> source)
Creates a new status change event.
|
Modifier and Type | Method and Description |
---|---|
Result<Date> |
DateToSqlDateConverter.convertToModel(Date value,
ValueContext context) |
Result<Long> |
DateToLongConverter.convertToModel(Date value,
ValueContext context) |
Result<Date> |
LocalDateTimeToDateConverter.convertToModel(LocalDateTime localDate,
ValueContext context) |
Result<Date> |
LocalDateToDateConverter.convertToModel(LocalDate localDate,
ValueContext context) |
Result<MODEL> |
Converter.convertToModel(PRESENTATION value,
ValueContext context)
Converts the given value from presentation type to model type.
|
Result<UUID> |
StringToUuidConverter.convertToModel(String value,
ValueContext context) |
Result<Long> |
StringToLongConverter.convertToModel(String value,
ValueContext context) |
Result<Integer> |
StringToIntegerConverter.convertToModel(String value,
ValueContext context) |
Result<Float> |
StringToFloatConverter.convertToModel(String value,
ValueContext context) |
Result<Double> |
StringToDoubleConverter.convertToModel(String value,
ValueContext context) |
Result<Date> |
StringToDateConverter.convertToModel(String value,
ValueContext context) |
Result<Boolean> |
StringToBooleanConverter.convertToModel(String value,
ValueContext context) |
Result<BigInteger> |
StringToBigIntegerConverter.convertToModel(String value,
ValueContext context) |
Result<BigDecimal> |
StringToBigDecimalConverter.convertToModel(String value,
ValueContext context) |
protected Result<Number> |
AbstractStringToNumberConverter.convertToNumber(String value,
ValueContext context)
Convert the value to a Number using the given locale and
AbstractStringToNumberConverter.getFormat(Locale) . |
Modifier and Type | Method and Description |
---|---|
static <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.
|
Copyright © 2020. All rights reserved.