|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.lessy.util.format.impl.FormatFloat
public class FormatFloat
Implementation of a float formatter. The values are formatted with interpunctuation (thousands-separator) and with a maximum of 2 decimal digits.
| Constructor Summary | |
|---|---|
FormatFloat()
|
|
| Method Summary | |
|---|---|
String |
format(Object pValue,
Locale locale,
Properties pProps)
Formats the value (impl.method) |
protected int |
getMaxDecimals()
Returns the maximal number of decimal places (two) |
protected int |
getMinDecimals()
Returns the minimal number of decimal places (zero) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FormatFloat()
| Method Detail |
|---|
public String format(Object pValue,
Locale locale,
Properties pProps)
format in interface FormatIFpValue - Value to be formatted. This can be any type as long toString() delivers a float formattable valuelocale - Locale to be used. If null then the default locale is usedpProps - Not used in this formatter.
protected int getMinDecimals()
protected int getMaxDecimals()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||