|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsbrt.shell.text.DoubleFormatV2
public class DoubleFormatV2
This class is a concrete implementation of DoubleFormat. Double values used by this class cannot be infinite or NaN.
Constructor Summary | |
---|---|
DoubleFormatV2()
Constructs a new double format for finite numbers. |
Method Summary | |
---|---|
java.lang.String |
format(double d)
Parses the provided string and returns its corresponding double precision number. |
java.lang.String |
format(java.lang.Double d)
Returns a formatted string representation of the provided double precision number. |
java.lang.Double |
parse(java.lang.String d)
Parses the provided string and returns its corresponding double precision number. |
double |
parsePrimitive(java.lang.String d)
Parses the provided string and returns its corresponding double precision number. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DoubleFormatV2()
Method Detail |
---|
public java.lang.String format(java.lang.Double d)
format
in interface DoubleFormat
format
in interface Formatter<java.lang.Double>
d
- the double precision number to be formatted.
public java.lang.String format(double d)
format
in interface DoubleFormat
d
- the string to be parsed.
FormatException
- if the provided string
is not parsable as a double precision number.
java.lang.NullPointerException
- if the provided
argument is null
.public java.lang.Double parse(java.lang.String d)
parse
in interface DoubleFormat
parse
in interface Parser<java.lang.Double>
d
- the string to be parsed.
FormatException
- if the provided string
is not parsable as a double precision number.
java.lang.NullPointerException
- if the provided
argument is null
.public double parsePrimitive(java.lang.String d)
parsePrimitive
in interface DoubleFormat
d
- the string to be parsed.
FormatException
- if the provided string
is not parsable as a double precision number.
java.lang.NullPointerException
- if the provided
argument is null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |