public class HMSNumberFormat extends NumberFormat
NumberFormat.Field
FRACTION_FIELD, INTEGER_FIELD
Constructor and Description |
---|
HMSNumberFormat()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
StringBuffer |
format(double number,
StringBuffer toAppendTo,
FieldPosition pos)
Formats the specified number as a string of the form HH:MM:SS.
|
StringBuffer |
format(long number,
StringBuffer toAppendTo,
FieldPosition pos)
Formats the specified number as a string of the form HH:MM:SS.
|
Number |
parse(String source,
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
format, formatToCharacterIterator, parseObject
public StringBuffer format(double number, StringBuffer toAppendTo, FieldPosition pos)
format
in class NumberFormat
number
- the number to format.toAppendTo
- the buffer to append to (ignored here).pos
- the field position (ignored here).public StringBuffer format(long number, StringBuffer toAppendTo, FieldPosition pos)
format
in class NumberFormat
number
- the number to format.toAppendTo
- the buffer to append to (ignored here).pos
- the field position (ignored here).public Number parse(String source, ParsePosition parsePosition)
null
.parse
in class NumberFormat
source
- ignored.parsePosition
- ignored.null
.Jas4pp 1.5 © Java Analysis Studio for Particle Physics