Package w.util

Class NumberUtils

java.lang.Object
w.util.NumberUtils

public class NumberUtils extends Object
Author:
whilein
  • Constructor Details

    • NumberUtils

      public NumberUtils()
  • Method Details

    • getRoman

      @NotNull public @NotNull String getRoman(int number)
      Возвращает римскую цифру, если number от 1 до 10, иначе возвращает number. Для 0 возвращается пустая строка.
      Parameters:
      number - Число
      Returns:
      Римская цифра
    • getLongLength

      public int getLongLength(long value)
    • getIntLength

      public int getIntLength(int value)
    • formatNumber

      @NotNull public @NotNull String formatNumber(double number)
    • formatNumber

      @NotNull public @NotNull String formatNumber(long number)
    • parseLong

      @NotNull public @NotNull OptionalLong parseLong(@NotNull @NotNull CharSequence input)
    • parseInt

      @NotNull public @NotNull OptionalInt parseInt(@NotNull @NotNull CharSequence input)
    • digit

      public int digit(char value)