Index
All Classes and Interfaces|All Packages
B
- build() - Method in class io.github.zazalng.ThaiBahtConfig.Builder
-
Builds an immutable
ThaiBahtConfiginstance with the configured values. - builder() - Static method in class io.github.zazalng.ThaiBahtConfig
-
Creates a new
ThaiBahtConfig.Builderwith default initialization for building custom configurations. - builder(Language) - Static method in class io.github.zazalng.ThaiBahtConfig
-
Deprecated.
- builder(LanguageHandler) - Static method in class io.github.zazalng.ThaiBahtConfig
-
Creates a new
ThaiBahtConfig.Builderwith a specific initial language handler. - Builder(Language) - Constructor for class io.github.zazalng.ThaiBahtConfig.Builder
-
Deprecated.Use
Builder(LanguageHandler)for new code - Builder(LanguageHandler) - Constructor for class io.github.zazalng.ThaiBahtConfig.Builder
-
Constructs a builder with a specific initial language handler.
C
- config(Consumer<ThaiBahtConfig.Builder>) - Method in class io.github.zazalng.ThaiBaht
-
Modifies the current configuration using a consumer function for flexible updates.
- convert(ThaiBaht) - Method in interface io.github.zazalng.contracts.LanguageHandler
-
Converts the amount in the given
ThaiBahtinstance to language-specific text. - convert(ThaiBaht) - Method in class io.github.zazalng.handler.EnglishLanguageHandler
- convert(ThaiBaht) - Method in class io.github.zazalng.handler.ThaiLanguageHandler
- create(BigDecimal) - Static method in class io.github.zazalng.ThaiBaht
-
Creates a new ThaiBaht converter instance with the specified amount and default configuration.
- create(BigDecimal, ThaiBahtConfig) - Static method in class io.github.zazalng.ThaiBaht
-
Creates a new ThaiBaht converter instance with the specified amount and custom configuration.
D
- defaultConfig() - Static method in class io.github.zazalng.ThaiBahtConfig
-
Obtains the default configuration for currency text conversion.
E
- ENGLISH - Enum constant in enum io.github.zazalng.contracts.Language
-
Deprecated.English language output.
- EnglishConvertHandler - Class in io.github.zazalng.handler
-
Deprecated.
- EnglishLanguageHandler - Class in io.github.zazalng.handler
-
English language implementation of
LanguageHandler. - EnglishLanguageHandler() - Constructor for class io.github.zazalng.handler.EnglishLanguageHandler
F
- formal(boolean) - Method in class io.github.zazalng.ThaiBahtConfig.Builder
-
Sets whether formal wording rules should be applied.
- FormatApplier - Class in io.github.zazalng.handler
-
Internal utility for applying custom format templates to baht/satang conversions.
- FormatTemplate - Class in io.github.zazalng.utils
-
Immutable template for custom format strings with named placeholder support (v1.4.0+).
G
- getAmount() - Method in class io.github.zazalng.ThaiBaht
-
Returns the current monetary amount held by this instance.
- getConfig() - Method in class io.github.zazalng.ThaiBaht
-
Returns the current formatting configuration held by this instance.
- getExact() - Method in enum io.github.zazalng.contracts.Language
-
Deprecated.Returns the exact/only indicator word for this language.
- getExactWord() - Method in interface io.github.zazalng.contracts.LanguageHandler
-
Returns the exact/only indicator word displayed when satang (fractional part) is zero.
- getExactWord() - Method in class io.github.zazalng.handler.EnglishLanguageHandler
- getExactWord() - Method in class io.github.zazalng.handler.ThaiLanguageHandler
- getFormatTemplate() - Method in class io.github.zazalng.ThaiBahtConfig
-
Returns the custom format template for positive amounts.
- getLanguage() - Method in class io.github.zazalng.ThaiBahtConfig
-
Returns the output language for text conversion.
- getLanguageCode() - Method in interface io.github.zazalng.contracts.LanguageHandler
-
Returns the language code identifier for this handler.
- getLanguageCode() - Method in class io.github.zazalng.handler.EnglishLanguageHandler
- getLanguageCode() - Method in class io.github.zazalng.handler.ThaiLanguageHandler
- getLanguageHandler() - Method in class io.github.zazalng.ThaiBahtConfig
-
Returns the language handler implementation for this configuration.
- getLanguageName() - Method in interface io.github.zazalng.contracts.LanguageHandler
-
Returns the human-readable name of this language.
- getLanguageName() - Method in class io.github.zazalng.handler.EnglishLanguageHandler
- getLanguageName() - Method in class io.github.zazalng.handler.ThaiLanguageHandler
- getNegativeFormatTemplate() - Method in class io.github.zazalng.ThaiBahtConfig
-
Returns the custom format template for negative amounts.
- getNegativePrefix() - Method in interface io.github.zazalng.contracts.LanguageHandler
-
Returns the default prefix applied to negative amounts.
- getNegativePrefix() - Method in class io.github.zazalng.handler.EnglishLanguageHandler
- getNegativePrefix() - Method in class io.github.zazalng.handler.ThaiLanguageHandler
- getNegativePrefix() - Method in class io.github.zazalng.ThaiBahtConfig
-
Returns the negative prefix wording for this configuration.
- getPrefix() - Method in enum io.github.zazalng.contracts.Language
-
Deprecated.Returns the default negative prefix for this language.
- getSatang() - Method in enum io.github.zazalng.contracts.Language
-
Deprecated.Returns the satang (fractional) unit word for this language.
- getSatangWord() - Method in interface io.github.zazalng.contracts.LanguageHandler
-
Returns the satang (fractional currency unit) word.
- getSatangWord() - Method in class io.github.zazalng.handler.EnglishLanguageHandler
- getSatangWord() - Method in class io.github.zazalng.handler.ThaiLanguageHandler
- getTemplate() - Method in class io.github.zazalng.utils.FormatTemplate
-
Returns the original format string with its named placeholders.
- getUnit() - Method in enum io.github.zazalng.contracts.Language
-
Deprecated.Returns the currency unit word for this language.
- getUnitWord() - Method in interface io.github.zazalng.contracts.LanguageHandler
-
Returns the currency unit word for the integer (baht) part.
- getUnitWord() - Method in class io.github.zazalng.handler.EnglishLanguageHandler
- getUnitWord() - Method in class io.github.zazalng.handler.ThaiLanguageHandler
I
- io.github.zazalng - package io.github.zazalng
-
Utilities to convert numeric amounts into Thai-language baht text with multi-language support.
- io.github.zazalng.contracts - package io.github.zazalng.contracts
-
Contract types and language definitions for baht text conversion.
- io.github.zazalng.handler - package io.github.zazalng.handler
-
Internal conversion handlers for transforming numeric amounts into language-specific text.
- io.github.zazalng.utils - package io.github.zazalng.utils
-
Internal utility classes and helper functions for the ThaiBaht conversion library.
- isFormal() - Method in class io.github.zazalng.ThaiBahtConfig
-
Returns whether formal wording rules should be applied.
- isUseUnit() - Method in class io.github.zazalng.ThaiBahtConfig
-
Returns whether unit words are included in the output.
L
- language(Language) - Method in class io.github.zazalng.ThaiBahtConfig.Builder
-
Deprecated.Use
ThaiBahtConfig.Builder.languageHandler(LanguageHandler)for new code - Language - Enum in io.github.zazalng.contracts
-
Deprecated.
- languageHandler(LanguageHandler) - Method in class io.github.zazalng.ThaiBahtConfig.Builder
-
Sets the language handler for text conversion.
- LanguageHandler - Interface in io.github.zazalng.contracts
-
Interface for language-specific text conversion with self-contained language configuration.
O
- of(String) - Static method in class io.github.zazalng.utils.FormatTemplate
-
Creates a FormatTemplate from a format string.
- of(BigDecimal) - Static method in class io.github.zazalng.ThaiBaht
-
Converts the given amount to Thai baht text using the default configuration.
- of(BigDecimal, ThaiBahtConfig) - Static method in class io.github.zazalng.ThaiBaht
-
Converts the given amount to Thai baht text using the provided configuration.
S
- setAmount(BigDecimal) - Method in class io.github.zazalng.ThaiBaht
-
Updates the monetary amount to be converted.
- setConfig(ThaiBahtConfig) - Method in class io.github.zazalng.ThaiBaht
-
Updates the formatting configuration used by this instance.
- setFormat(String, boolean) - Method in class io.github.zazalng.ThaiBahtConfig.Builder
-
Sets a custom format for both positive and negative amounts using the same template.
- setFormatTemplate(FormatTemplate) - Method in class io.github.zazalng.ThaiBahtConfig.Builder
-
Sets a custom format template for positive amounts using a FormatTemplate instance.
- setFormatTemplate(String) - Method in class io.github.zazalng.ThaiBahtConfig.Builder
-
Sets a custom format template for positive amounts.
- setNegativeFormatTemplate(FormatTemplate) - Method in class io.github.zazalng.ThaiBahtConfig.Builder
-
Sets a custom format template for negative amounts using a FormatTemplate instance.
- setNegativeFormatTemplate(String) - Method in class io.github.zazalng.ThaiBahtConfig.Builder
-
Sets a custom format template for negative amounts.
- setPrefix(String) - Method in class io.github.zazalng.ThaiBahtConfig.Builder
-
Sets the prefix wording for negative amounts.
T
- TextConverter - Class in io.github.zazalng.handler
-
Internal router and dispatcher for converting numeric amounts to language-specific text.
- THAI - Enum constant in enum io.github.zazalng.contracts.Language
-
Deprecated.Thai language output.
- ThaiBaht - Class in io.github.zazalng
-
Primary entry point for converting monetary amounts (
BigDecimal) into beautifully formatted Thai Baht text in multiple languages. - ThaiBahtConfig - Class in io.github.zazalng
-
Immutable configuration object that controls all aspects of currency text conversion.
- ThaiBahtConfig.Builder - Class in io.github.zazalng
-
Builder for constructing immutable
ThaiBahtConfiginstances. - ThaiConvertHandler - Class in io.github.zazalng.handler
-
Deprecated.
- ThaiLanguageHandler - Class in io.github.zazalng.handler
-
Thai language implementation of
LanguageHandler. - ThaiLanguageHandler() - Constructor for class io.github.zazalng.handler.ThaiLanguageHandler
- toBahtText(ThaiBaht) - Static method in class io.github.zazalng.handler.TextConverter
-
Converts a
ThaiBahtinstance to language-specific baht text. - toBuilder() - Method in class io.github.zazalng.ThaiBahtConfig
-
Converts this configuration into a
ThaiBahtConfig.Builderfor modification. - toString() - Method in class io.github.zazalng.ThaiBaht
-
Converts the stored amount to Thai baht text using the current configuration.
- toString() - Method in class io.github.zazalng.utils.FormatTemplate
-
Returns a string representation of this FormatTemplate.
U
- useUnit(boolean) - Method in class io.github.zazalng.ThaiBahtConfig.Builder
-
Sets whether unit words should be included in the output.
V
- valueOf(String) - Static method in enum io.github.zazalng.contracts.Language
-
Deprecated.Returns the enum constant of this type with the specified name.
- values() - Static method in enum io.github.zazalng.contracts.Language
-
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
All Classes and Interfaces|All Packages
ThaiBahtConfig.builder(LanguageHandler)for new code