public final class FmtUtils extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
FmtUtils |
endZero(boolean endZero) |
String |
fmt(int scale) |
String |
fmt(String pattern) |
String |
fmtCurrency() |
String |
fmtCurrency(int scale) |
String |
fmtDollar() |
String |
fmtDollar(int scale) |
String |
fmtPercent() |
String |
fmtPercent(int scale) |
String |
fmtRMB() |
String |
fmtRMB(int scale) |
static <T> FmtUtils |
of(T data) |
double |
toDouble() |
double |
toDouble(int scale) |
float |
toFloat() |
float |
toFloat(int scale) |
int |
toInt() |
long |
toLong() |
short |
toShort() |
public static <T> FmtUtils of(T data)
public String fmt(int scale)
public String fmtCurrency()
public String fmtCurrency(int scale)
public String fmtPercent()
public String fmtPercent(int scale)
public String fmtRMB()
public String fmtRMB(int scale)
public String fmtDollar()
public String fmtDollar(int scale)
public int toInt()
public double toDouble()
public double toDouble(int scale)
public float toFloat()
public float toFloat(int scale)
public long toLong()
public short toShort()
public FmtUtils endZero(boolean endZero)
Copyright © 2016. All rights reserved.