Class FormatConfig

java.lang.Object
fr.maxlego08.zauctionhouse.api.utils.FormatConfig

public class FormatConfig extends Object
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.
  • Constructor Details

    • FormatConfig

      public FormatConfig(String format, String display, long maxAmount)
      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

      public String getFormat()
      Retrieves the format pattern of this configuration.
      Returns:
      String The format pattern.
    • getDisplay

      public String 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.