withUnit static method
with unit. 拼接单位.
Implementation
static String withUnit(String moneyTxt, MoneyUnit unit) {
switch (unit) {
case MoneyUnit.YUAN:
moneyTxt = YUAN + moneyTxt;
break;
case MoneyUnit.YUAN_ZH:
moneyTxt = moneyTxt + YUAN_ZH;
break;
case MoneyUnit.DOLLAR:
moneyTxt = DOLLAR + moneyTxt;
break;
default:
break;
}
return moneyTxt;
}