Interface IConverterBuilder<V,R>

Type Parameters:
V - type of the value
R - 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 Type
    Method
    Description
    converter(ToDoubleFunction<V> toNumber, DoubleFunction<V> fromNumber)
    Sets how a value is turned into the number of the spinner and back.
  • Method Details

    • converter

      R converter(ToDoubleFunction<V> toNumber, DoubleFunction<V> fromNumber)
      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 not null
      fromNumber - turns a number of the spinner back into a value
      Returns:
      the next step of the builder