Class Common

java.lang.Object
br.net.dd.netherwingcore.common.Common

public class Common extends Object
The Common class provides a set of enums and constants commonly used throughout the application. It includes time-related constants, account types, locale settings, and mathematical constants. This class is designed as a central repository for shared and reusable definitions, which can help enforce consistency and reduce code duplication.
  • Field Details

    • DEFAULT_LOCALE

      public static final Common.LocaleConstant DEFAULT_LOCALE
    • localeNames

      public static final String[] localeNames
    • M_PI

      public static final double M_PI
      The mathematical constant PI (π).
      See Also:
    • M_PI_4

      public static final double M_PI_4
      The value of π/4.
      See Also:
    • MAX_QUERY_LEN

      public static final int MAX_QUERY_LEN
      The maximum allowed query length in bytes (32 KB).
      See Also:
  • Constructor Details

    • Common

      public Common()
  • Method Details

    • getLocaleByName

      public static Common.LocaleConstant getLocaleByName(String name)
      Gets the LocaleConstant corresponding to the given locale name.
      Parameters:
      name - the name of the locale.
      Returns:
      the corresponding LocaleConstant, or LOCALE_none if not found.