com.holonplatform.vaadin.flow.components.converters

## Interface StringToNumberConverter.Builder<T extends Number>

- Type Parameters:
    `T` - Number type
  Enclosing interface:
    StringToNumberConverter<T extends Number>

      public static interface StringToNumberConverter.Builder<T extends Number>

  `StringToNumberConverter` builder.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `StringToNumberConverter<T>` | `build()` Build and obtain the `StringToNumberConverter`.
    `StringToNumberConverter.Builder<T>` | `maxDecimals(int maxDecimals)` Set the maximum decimal digits allowed.
    `StringToNumberConverter.Builder<T>` | `minDecimals(int minDecimals)` Set the minimum decimal digits to display.
    `StringToNumberConverter.Builder<T>` | `negatives(boolean negatives)` Set whether to allow negative numbers.

- - ### Method Detail

    - #### negatives

          StringToNumberConverter.Builder<T> negatives(boolean negatives)

      Set whether to allow negative numbers.

      Default is `true`.

      Parameters:
        `negatives` - whether to allow negative numbers
      Returns:
        this

    - #### maxDecimals

          StringToNumberConverter.Builder<T> maxDecimals(int maxDecimals)

      Set the maximum decimal digits allowed.
      Parameters:
        `maxDecimals` - the maximum decimal digits, `-1` for no limit
      Returns:
        this

    - #### minDecimals

          StringToNumberConverter.Builder<T> minDecimals(int minDecimals)

      Set the minimum decimal digits to display.
      Parameters:
        `minDecimals` - the minimum decimal digits to display, `-1` for no limit
      Returns:
        this

    - #### build

          StringToNumberConverter<T> build()

      Build and obtain the `StringToNumberConverter`.
      Returns:
        the `StringToNumberConverter` instance

Copyright © 2020 The Holon Platform. All rights reserved.