Class NumberFormat

java.lang.Object
com.azure.analytics.purview.datamap.models.NumberFormat
All Implemented Interfaces:
com.azure.json.JsonSerializable<NumberFormat>

public final class NumberFormat extends Object implements com.azure.json.JsonSerializable<NumberFormat>
The number format.
  • Constructor Details

    • NumberFormat

      public NumberFormat()
      Creates an instance of NumberFormat class.
  • Method Details

    • getAvailableLocales

      public List<String> getAvailableLocales()
      Get the availableLocales property: The number format.
      Returns:
      the availableLocales value.
    • setAvailableLocales

      public NumberFormat setAvailableLocales(List<String> availableLocales)
      Set the availableLocales property: The number format.
      Parameters:
      availableLocales - the availableLocales value to set.
      Returns:
      the NumberFormat object itself.
    • getCurrency

      public String getCurrency()
      Get the currency property: The currency.
      Returns:
      the currency value.
    • setCurrency

      public NumberFormat setCurrency(String currency)
      Set the currency property: The currency.
      Parameters:
      currency - the currency value to set.
      Returns:
      the NumberFormat object itself.
    • getCurrencyInstance

      public NumberFormat getCurrencyInstance()
      Get the currencyInstance property: The number format.
      Returns:
      the currencyInstance value.
    • setCurrencyInstance

      public NumberFormat setCurrencyInstance(NumberFormat currencyInstance)
      Set the currencyInstance property: The number format.
      Parameters:
      currencyInstance - the currencyInstance value to set.
      Returns:
      the NumberFormat object itself.
    • isGroupingUsed

      public Boolean isGroupingUsed()
      Get the groupingUsed property: Determines if grouping is used.
      Returns:
      the groupingUsed value.
    • setGroupingUsed

      public NumberFormat setGroupingUsed(Boolean groupingUsed)
      Set the groupingUsed property: Determines if grouping is used.
      Parameters:
      groupingUsed - the groupingUsed value to set.
      Returns:
      the NumberFormat object itself.
    • getInstance

      public NumberFormat getInstance()
      Get the instance property: The number format.
      Returns:
      the instance value.
    • setInstance

      public NumberFormat setInstance(NumberFormat instance)
      Set the instance property: The number format.
      Parameters:
      instance - the instance value to set.
      Returns:
      the NumberFormat object itself.
    • getIntegerInstance

      public NumberFormat getIntegerInstance()
      Get the integerInstance property: The number format.
      Returns:
      the integerInstance value.
    • setIntegerInstance

      public NumberFormat setIntegerInstance(NumberFormat integerInstance)
      Set the integerInstance property: The number format.
      Parameters:
      integerInstance - the integerInstance value to set.
      Returns:
      the NumberFormat object itself.
    • getMaximumFractionDigits

      public Integer getMaximumFractionDigits()
      Get the maximumFractionDigits property: The maximum of fraction digits.
      Returns:
      the maximumFractionDigits value.
    • setMaximumFractionDigits

      public NumberFormat setMaximumFractionDigits(Integer maximumFractionDigits)
      Set the maximumFractionDigits property: The maximum of fraction digits.
      Parameters:
      maximumFractionDigits - the maximumFractionDigits value to set.
      Returns:
      the NumberFormat object itself.
    • getMaximumIntegerDigits

      public Integer getMaximumIntegerDigits()
      Get the maximumIntegerDigits property: The maximum of integer digits.
      Returns:
      the maximumIntegerDigits value.
    • setMaximumIntegerDigits

      public NumberFormat setMaximumIntegerDigits(Integer maximumIntegerDigits)
      Set the maximumIntegerDigits property: The maximum of integer digits.
      Parameters:
      maximumIntegerDigits - the maximumIntegerDigits value to set.
      Returns:
      the NumberFormat object itself.
    • getMinimumFractionDigits

      public Integer getMinimumFractionDigits()
      Get the minimumFractionDigits property: The minimum of fraction digits.
      Returns:
      the minimumFractionDigits value.
    • setMinimumFractionDigits

      public NumberFormat setMinimumFractionDigits(Integer minimumFractionDigits)
      Set the minimumFractionDigits property: The minimum of fraction digits.
      Parameters:
      minimumFractionDigits - the minimumFractionDigits value to set.
      Returns:
      the NumberFormat object itself.
    • getMinimumIntegerDigits

      public Integer getMinimumIntegerDigits()
      Get the minimumIntegerDigits property: The minimum of integer digits.
      Returns:
      the minimumIntegerDigits value.
    • setMinimumIntegerDigits

      public NumberFormat setMinimumIntegerDigits(Integer minimumIntegerDigits)
      Set the minimumIntegerDigits property: The minimum of integer digits.
      Parameters:
      minimumIntegerDigits - the minimumIntegerDigits value to set.
      Returns:
      the NumberFormat object itself.
    • getNumberInstance

      public NumberFormat getNumberInstance()
      Get the numberInstance property: The number format.
      Returns:
      the numberInstance value.
    • setNumberInstance

      public NumberFormat setNumberInstance(NumberFormat numberInstance)
      Set the numberInstance property: The number format.
      Parameters:
      numberInstance - the numberInstance value to set.
      Returns:
      the NumberFormat object itself.
    • isParseIntegerOnly

      public Boolean isParseIntegerOnly()
      Get the parseIntegerOnly property: Determines if only integer is parsed.
      Returns:
      the parseIntegerOnly value.
    • setParseIntegerOnly

      public NumberFormat setParseIntegerOnly(Boolean parseIntegerOnly)
      Set the parseIntegerOnly property: Determines if only integer is parsed.
      Parameters:
      parseIntegerOnly - the parseIntegerOnly value to set.
      Returns:
      the NumberFormat object itself.
    • getPercentInstance

      public NumberFormat getPercentInstance()
      Get the percentInstance property: The number format.
      Returns:
      the percentInstance value.
    • setPercentInstance

      public NumberFormat setPercentInstance(NumberFormat percentInstance)
      Set the percentInstance property: The number format.
      Parameters:
      percentInstance - the percentInstance value to set.
      Returns:
      the NumberFormat object itself.
    • getRoundingMode

      public RoundingMode getRoundingMode()
      Get the roundingMode property: The enum of rounding mode.
      Returns:
      the roundingMode value.
    • setRoundingMode

      public NumberFormat setRoundingMode(RoundingMode roundingMode)
      Set the roundingMode property: The enum of rounding mode.
      Parameters:
      roundingMode - the roundingMode value to set.
      Returns:
      the NumberFormat object itself.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<NumberFormat>
      Throws:
      IOException
    • fromJson

      public static NumberFormat fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of NumberFormat from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of NumberFormat if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the NumberFormat.