Interface IConverterBuilder<V,R>
- Type Parameters:
V- type of the valueR- next step of the builder
- All Known Subinterfaces:
ContainerSpinnerSectionBuilder.ConverterBuilder<T,,V> EmfSpinnerBuilder.ConverterBuilder<T,,V> EmfSpinnerSectionBuilder.ConverterBuilder<T,,V> SpinnerBuilder.ConverterBuilder<V>,SpinnerSectionBuilder.ConverterBuilder<V>
- All Known Implementing Classes:
ContainerSpinnerSectionBuilder.Builder,EmfSpinnerBuilder.Builder,EmfSpinnerSectionBuilder.Builder,SpinnerBuilder.Builder,SpinnerSectionBuilder.Builder
public interface IConverterBuilder<V,R>
Step of a spinner section builder that sets how a value is turned into a number and back.
It is needed for a value of any type; for Integer and Double the factory sets it.
- Author:
- Ionov Ivan
-
Method Summary
Modifier and TypeMethodDescriptionconverter(ToDoubleFunction<V> toNumber, DoubleFunction<V> fromNumber) Sets how a value is turned into the number of the spinner and back.
-
Method Details
-
converter
Sets how a value is turned into the number of the spinner and back.- Parameters:
toNumber- turns a value into a number; gets a value that is notnullfromNumber- turns a number of the spinner back into a value- Returns:
- the next step of the builder
-