ezvcard.util
Class VCardFloatFormatter
java.lang.Object
java.text.Format
java.text.NumberFormat
java.text.DecimalFormat
ezvcard.util.VCardFloatFormatter
- All Implemented Interfaces:
- Serializable, Cloneable
public class VCardFloatFormatter
- extends DecimalFormat
Formats floating-point values for vCards. Notably, this ensures that a "." is
used as decimal separator, no matter the locale.
- Author:
- Michael Angstadt
- See Also:
- Serialized Form
Methods inherited from class java.text.DecimalFormat |
applyLocalizedPattern, applyPattern, clone, equals, format, format, format, formatToCharacterIterator, getCurrency, getDecimalFormatSymbols, getGroupingSize, getMaximumFractionDigits, getMaximumIntegerDigits, getMinimumFractionDigits, getMinimumIntegerDigits, getMultiplier, getNegativePrefix, getNegativeSuffix, getPositivePrefix, getPositiveSuffix, getRoundingMode, hashCode, isDecimalSeparatorAlwaysShown, isParseBigDecimal, parse, setCurrency, setDecimalFormatSymbols, setDecimalSeparatorAlwaysShown, setGroupingSize, setMaximumFractionDigits, setMaximumIntegerDigits, setMinimumFractionDigits, setMinimumIntegerDigits, setMultiplier, setNegativePrefix, setNegativeSuffix, setParseBigDecimal, setPositivePrefix, setPositiveSuffix, setRoundingMode, toLocalizedPattern, toPattern |
Methods inherited from class java.text.NumberFormat |
format, format, getAvailableLocales, getCurrencyInstance, getCurrencyInstance, getInstance, getInstance, getIntegerInstance, getIntegerInstance, getNumberInstance, getNumberInstance, getPercentInstance, getPercentInstance, isGroupingUsed, isParseIntegerOnly, parse, parseObject, setGroupingUsed, setParseIntegerOnly |
VCardFloatFormatter
public VCardFloatFormatter()
- Creates a new formatter with a max of 6 decimals.
VCardFloatFormatter
public VCardFloatFormatter(int decimals)
- Creates a new formatter.
- Parameters:
decimals
- the max number of decimal places
Copyright © 2012-2014 Michael Angstadt. All Rights Reserved.