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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NumberFormatfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of NumberFormat from the JsonReader.Get the availableLocales property: The number format.Get the currency property: The currency.Get the currencyInstance property: The number format.Get the instance property: The number format.Get the integerInstance property: The number format.Get the maximumFractionDigits property: The maximum of fraction digits.Get the maximumIntegerDigits property: The maximum of integer digits.Get the minimumFractionDigits property: The minimum of fraction digits.Get the minimumIntegerDigits property: The minimum of integer digits.Get the numberInstance property: The number format.Get the percentInstance property: The number format.Get the roundingMode property: The enum of rounding mode.Get the groupingUsed property: Determines if grouping is used.Get the parseIntegerOnly property: Determines if only integer is parsed.setAvailableLocales(List<String> availableLocales) Set the availableLocales property: The number format.setCurrency(String currency) Set the currency property: The currency.setCurrencyInstance(NumberFormat currencyInstance) Set the currencyInstance property: The number format.setGroupingUsed(Boolean groupingUsed) Set the groupingUsed property: Determines if grouping is used.setInstance(NumberFormat instance) Set the instance property: The number format.setIntegerInstance(NumberFormat integerInstance) Set the integerInstance property: The number format.setMaximumFractionDigits(Integer maximumFractionDigits) Set the maximumFractionDigits property: The maximum of fraction digits.setMaximumIntegerDigits(Integer maximumIntegerDigits) Set the maximumIntegerDigits property: The maximum of integer digits.setMinimumFractionDigits(Integer minimumFractionDigits) Set the minimumFractionDigits property: The minimum of fraction digits.setMinimumIntegerDigits(Integer minimumIntegerDigits) Set the minimumIntegerDigits property: The minimum of integer digits.setNumberInstance(NumberFormat numberInstance) Set the numberInstance property: The number format.setParseIntegerOnly(Boolean parseIntegerOnly) Set the parseIntegerOnly property: Determines if only integer is parsed.setPercentInstance(NumberFormat percentInstance) Set the percentInstance property: The number format.setRoundingMode(RoundingMode roundingMode) Set the roundingMode property: The enum of rounding mode.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
NumberFormat
public NumberFormat()Creates an instance of NumberFormat class.
-
-
Method Details
-
getAvailableLocales
Get the availableLocales property: The number format.- Returns:
- the availableLocales value.
-
setAvailableLocales
Set the availableLocales property: The number format.- Parameters:
availableLocales- the availableLocales value to set.- Returns:
- the NumberFormat object itself.
-
getCurrency
Get the currency property: The currency.- Returns:
- the currency value.
-
setCurrency
Set the currency property: The currency.- Parameters:
currency- the currency value to set.- Returns:
- the NumberFormat object itself.
-
getCurrencyInstance
Get the currencyInstance property: The number format.- Returns:
- the currencyInstance value.
-
setCurrencyInstance
Set the currencyInstance property: The number format.- Parameters:
currencyInstance- the currencyInstance value to set.- Returns:
- the NumberFormat object itself.
-
isGroupingUsed
Get the groupingUsed property: Determines if grouping is used.- Returns:
- the groupingUsed value.
-
setGroupingUsed
Set the groupingUsed property: Determines if grouping is used.- Parameters:
groupingUsed- the groupingUsed value to set.- Returns:
- the NumberFormat object itself.
-
getInstance
Get the instance property: The number format.- Returns:
- the instance value.
-
setInstance
Set the instance property: The number format.- Parameters:
instance- the instance value to set.- Returns:
- the NumberFormat object itself.
-
getIntegerInstance
Get the integerInstance property: The number format.- Returns:
- the integerInstance value.
-
setIntegerInstance
Set the integerInstance property: The number format.- Parameters:
integerInstance- the integerInstance value to set.- Returns:
- the NumberFormat object itself.
-
getMaximumFractionDigits
Get the maximumFractionDigits property: The maximum of fraction digits.- Returns:
- the maximumFractionDigits value.
-
setMaximumFractionDigits
Set the maximumFractionDigits property: The maximum of fraction digits.- Parameters:
maximumFractionDigits- the maximumFractionDigits value to set.- Returns:
- the NumberFormat object itself.
-
getMaximumIntegerDigits
Get the maximumIntegerDigits property: The maximum of integer digits.- Returns:
- the maximumIntegerDigits value.
-
setMaximumIntegerDigits
Set the maximumIntegerDigits property: The maximum of integer digits.- Parameters:
maximumIntegerDigits- the maximumIntegerDigits value to set.- Returns:
- the NumberFormat object itself.
-
getMinimumFractionDigits
Get the minimumFractionDigits property: The minimum of fraction digits.- Returns:
- the minimumFractionDigits value.
-
setMinimumFractionDigits
Set the minimumFractionDigits property: The minimum of fraction digits.- Parameters:
minimumFractionDigits- the minimumFractionDigits value to set.- Returns:
- the NumberFormat object itself.
-
getMinimumIntegerDigits
Get the minimumIntegerDigits property: The minimum of integer digits.- Returns:
- the minimumIntegerDigits value.
-
setMinimumIntegerDigits
Set the minimumIntegerDigits property: The minimum of integer digits.- Parameters:
minimumIntegerDigits- the minimumIntegerDigits value to set.- Returns:
- the NumberFormat object itself.
-
getNumberInstance
Get the numberInstance property: The number format.- Returns:
- the numberInstance value.
-
setNumberInstance
Set the numberInstance property: The number format.- Parameters:
numberInstance- the numberInstance value to set.- Returns:
- the NumberFormat object itself.
-
isParseIntegerOnly
Get the parseIntegerOnly property: Determines if only integer is parsed.- Returns:
- the parseIntegerOnly value.
-
setParseIntegerOnly
Set the parseIntegerOnly property: Determines if only integer is parsed.- Parameters:
parseIntegerOnly- the parseIntegerOnly value to set.- Returns:
- the NumberFormat object itself.
-
getPercentInstance
Get the percentInstance property: The number format.- Returns:
- the percentInstance value.
-
setPercentInstance
Set the percentInstance property: The number format.- Parameters:
percentInstance- the percentInstance value to set.- Returns:
- the NumberFormat object itself.
-
getRoundingMode
Get the roundingMode property: The enum of rounding mode.- Returns:
- the roundingMode value.
-
setRoundingMode
Set the roundingMode property: The enum of rounding mode.- Parameters:
roundingMode- the roundingMode value to set.- Returns:
- the NumberFormat object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<NumberFormat>- Throws:
IOException
-
fromJson
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.
-