- All Known Subinterfaces:
BeanConverter
public interface ValueConverter<V extends Value>
Value converter for simple values that come from query, path, form, etc... parameters into more
specific type.
It is an extension point for Value.to(Class)
calls.
-
Method Summary
Modifier and TypeMethodDescriptionConvert simple to specific type.static List<ValueConverter>
defaults()
Immutable list of defaults/built-inValueConverter
.boolean
True if the converter applies for the given type.
-
Method Details
-
supports
True if the converter applies for the given type.- Parameters:
type
- Conversion type.- Returns:
- True if the converter applies for the given type.
-
convert
Convert simple to specific type.- Parameters:
value
- Value value.type
- Requested type.- Returns:
- Converted value.
-
defaults
Immutable list of defaults/built-inValueConverter
.- Returns:
- Immutable list of defaults/built-in
ValueConverter
.
-