sbrt.shell.text
Interface DoubleFormat

All Superinterfaces:
Format, Formatter<java.lang.Double>, Parser<java.lang.Double>, SimpleFormat<java.lang.Double>
All Known Implementing Classes:
DoubleFormatV1, DoubleFormatV2

public interface DoubleFormat
extends SimpleFormat<java.lang.Double>

This interface is used to represent a format for double precision numbers.

Author:
This interface was written and documented by Jeremiah Wright while in the Wagner lab.

Method Summary
 java.lang.String format(double d)
          Returns a formatted string representation of the provided 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.
 

Method Detail

format

java.lang.String format(java.lang.Double d)
Returns a formatted string representation of the provided double precision number.

Specified by:
format in interface Formatter<java.lang.Double>
Parameters:
d - the double precision number to be formatted.
Returns:
a formatted string representation of the provided double precision number.

format

java.lang.String format(double d)
Returns a formatted string representation of the provided double precision number.

Parameters:
d - the double precision number to be formatted.
Returns:
a formatted string representation of the provided double precision number.

parse

java.lang.Double parse(java.lang.String d)
Parses the provided string and returns its corresponding double precision number.

Specified by:
parse in interface Parser<java.lang.Double>
Parameters:
d - the string to be parsed.
Returns:
the double precision number corresponding to the provided string.

parsePrimitive

double parsePrimitive(java.lang.String d)
Parses the provided string and returns its corresponding double precision number.

Parameters:
d - the string to be parsed.
Returns:
the double precision number corresponding to the provided string.