Class Common
java.lang.Object
br.net.dd.netherwingcore.common.Common
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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAccountTypesdefines levels of access or security that an account can have.static enumCascLocaleBitrepresents locale settings for casc operations or configurations.static enumLocaleConstantrepresents the supported locales of the application.static classLocalizedString provides a structure for storing and retrieving locale-specific strings.static enumTimeConstantsis an enum for time-related constants, providing conversions for units of time. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Common.LocaleConstantstatic final String[]static final doubleThe mathematical constant PI (π).static final doubleThe value of π/4.static final intThe maximum allowed query length in bytes (32 KB). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Common.LocaleConstantgetLocaleByName(String name) Gets theLocaleConstantcorresponding to the given locale name.
-
Field Details
-
DEFAULT_LOCALE
-
localeNames
-
M_PI
public static final double M_PIThe mathematical constant PI (π).- See Also:
-
M_PI_4
public static final double M_PI_4The value of π/4.- See Also:
-
MAX_QUERY_LEN
public static final int MAX_QUERY_LENThe maximum allowed query length in bytes (32 KB).- See Also:
-
-
Constructor Details
-
Common
public Common()
-
-
Method Details
-
getLocaleByName
Gets theLocaleConstantcorresponding to the given locale name.- Parameters:
name- the name of the locale.- Returns:
- the corresponding
LocaleConstant, or LOCALE_none if not found.
-