Class FormatConfig
java.lang.Object
fr.maxlego08.zauctionhouse.api.utils.FormatConfig
The FormatConfig class represents a configuration for formatting some aspect of the application.
It holds a format pattern, a display string, and a maximum amount value, which its used
for formatting and display drawer amount.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionFormatConfig(String format, String display, long maxAmount) Constructs a new FormatConfig with a specified format, display string, and maximum amount. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the display string of this configuration.Retrieves the format pattern of this configuration.longRetrieves the maximum amount or limit of this configuration.
-
Constructor Details
-
FormatConfig
Constructs a new FormatConfig with a specified format, display string, and maximum amount.- Parameters:
format- The format pattern to be used.display- The string to be used for display purposes.maxAmount- The maximum amount or limit associated with this configuration.
-
-
Method Details
-
getFormat
Retrieves the format pattern of this configuration.- Returns:
- String The format pattern.
-
getDisplay
Retrieves the display string of this configuration.- Returns:
- String The display string.
-
getMaxAmount
public long getMaxAmount()Retrieves the maximum amount or limit of this configuration.- Returns:
- long The maximum amount.
-