public static enum ChineseNumber.FormatStyle extends Enum<ChineseNumber.FormatStyle>
| 枚举常量和说明 |
|---|
LOWER_CASE
中文数字:'零', '一', '二', '三', '四', '五', '六', '七', '八', '九'
中文单位:'亿', '万', '千', '百', '十' |
MONEY
中文数字:'零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'
中文单位:'亿', '万', '仟', '佰', '拾' 特殊处理:整数部分结尾追加字符"元"。 |
UPPER_CASE
中文数字:'零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'
中文单位:'亿', '万', '仟', '佰', '拾' |
| 限定符和类型 | 方法和说明 |
|---|---|
char |
getNumberChar(char ch) |
char[] |
getNumbersText() |
char[] |
getUnitsText() |
static ChineseNumber.FormatStyle |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ChineseNumber.FormatStyle[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ChineseNumber.FormatStyle LOWER_CASE
public static final ChineseNumber.FormatStyle UPPER_CASE
public static final ChineseNumber.FormatStyle MONEY
public static ChineseNumber.FormatStyle[] values()
for (ChineseNumber.FormatStyle c : ChineseNumber.FormatStyle.values()) System.out.println(c);
public static ChineseNumber.FormatStyle valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public char[] getNumbersText()
public char[] getUnitsText()
public char getNumberChar(char ch)
Copyright © 2021. All rights reserved.