|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsbrt.shell.text.PercentFormatVersion1
public class PercentFormatVersion1
This class is a concrete implementation of PercentFormat.
Constructor Summary | |
---|---|
PercentFormatVersion1()
Constructs a new percent format. |
Method Summary | |
---|---|
java.lang.String |
format(double percentage)
Returns a formatted string representation of the provided percentage. |
java.lang.String |
format(java.lang.Double percentage)
Returns a formatted string representation of the provided percentage. |
DoubleFormatV1 |
getDoubleFormat()
Returns the DoubleFormat used to
parse and format the numerical percentage values. |
java.lang.Double |
parse(java.lang.String percentage)
Parses the provided string and returns its corresponding percentage. |
double |
parsePrimitive(java.lang.String percentage)
Parses the provided string and returns its corresponding percentage. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PercentFormatVersion1()
Method Detail |
---|
public DoubleFormatV1 getDoubleFormat()
DoubleFormat
used to
parse and format the numerical percentage values.
DoubleFormat
used to
parse and format the numerical percentage values.public java.lang.String format(double percentage)
%
sign.
format
in interface PercentFormat
percentage
- the percentage to be formatted.
public java.lang.String format(java.lang.Double percentage)
%
sign.
format
in interface Formatter<java.lang.Double>
format
in interface PercentFormat
percentage
- the percentage to be formatted.
public java.lang.Double parse(java.lang.String percentage)
parse
in interface Parser<java.lang.Double>
parse
in interface PercentFormat
percentage
- the string to be parsed.
public double parsePrimitive(java.lang.String percentage)
parsePrimitive
in interface PercentFormat
percentage
- the string to be parsed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |