forgot to commit
This commit is contained in:
parent
b0d11e8c15
commit
b9682d7823
|
|
@ -40,6 +40,10 @@ public class DecimalFormatter implements Formatter<BigDecimal> {
|
||||||
initDefaults();
|
initDefaults();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Class<BigDecimal> getFormattedObjectType() {
|
||||||
|
return BigDecimal.class;
|
||||||
|
}
|
||||||
|
|
||||||
public DecimalFormatter(String pattern) {
|
public DecimalFormatter(String pattern) {
|
||||||
initDefaults();
|
initDefaults();
|
||||||
formatFactory.setPattern(pattern);
|
formatFactory.setPattern(pattern);
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,10 @@ public class IntegerFormatter implements Formatter<Long> {
|
||||||
|
|
||||||
private boolean lenient;
|
private boolean lenient;
|
||||||
|
|
||||||
|
public Class<Long> getFormattedObjectType() {
|
||||||
|
return Long.class;
|
||||||
|
}
|
||||||
|
|
||||||
public String format(Long integer, Locale locale) {
|
public String format(Long integer, Locale locale) {
|
||||||
if (integer == null) {
|
if (integer == null) {
|
||||||
return "";
|
return "";
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,10 @@ public class PercentFormatter implements Formatter<BigDecimal> {
|
||||||
|
|
||||||
private boolean lenient;
|
private boolean lenient;
|
||||||
|
|
||||||
|
public Class<BigDecimal> getFormattedObjectType() {
|
||||||
|
return BigDecimal.class;
|
||||||
|
}
|
||||||
|
|
||||||
public String format(BigDecimal decimal, Locale locale) {
|
public String format(BigDecimal decimal, Locale locale) {
|
||||||
if (decimal == null) {
|
if (decimal == null) {
|
||||||
return "";
|
return "";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue