public class HMSNumberFormat extends java.text.NumberFormat
Constructor and Description |
---|
HMSNumberFormat()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.StringBuffer |
format(double number,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition pos)
Formats the specified number as a string of the form HH:MM:SS.
|
java.lang.StringBuffer |
format(long number,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition pos)
Formats the specified number as a string of the form HH:MM:SS.
|
java.lang.Number |
parse(java.lang.String source,
java.text.ParsePosition parsePosition)
Parsing is not implemented, so this method always returns
null . |
clone, equals, format, format, format, getAvailableLocales, getCurrency, getCurrencyInstance, getCurrencyInstance, getInstance, getInstance, getIntegerInstance, getIntegerInstance, getMaximumFractionDigits, getMaximumIntegerDigits, getMinimumFractionDigits, getMinimumIntegerDigits, getNumberInstance, getNumberInstance, getPercentInstance, getPercentInstance, getRoundingMode, hashCode, isGroupingUsed, isParseIntegerOnly, parse, parseObject, setCurrency, setGroupingUsed, setMaximumFractionDigits, setMaximumIntegerDigits, setMinimumFractionDigits, setMinimumIntegerDigits, setParseIntegerOnly, setRoundingMode
public HMSNumberFormat()
public java.lang.StringBuffer format(double number, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)
format
in class java.text.NumberFormat
number
- the number to format.toAppendTo
- the buffer to append to (ignored here).pos
- the field position (ignored here).public java.lang.StringBuffer format(long number, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)
format
in class java.text.NumberFormat
number
- the number to format.toAppendTo
- the buffer to append to (ignored here).pos
- the field position (ignored here).public java.lang.Number parse(java.lang.String source, java.text.ParsePosition parsePosition)
null
.parse
in class java.text.NumberFormat
source
- ignored.parsePosition
- ignored.null
.