public class CIN10 extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CIN10.Gender
性别枚举
|
Modifier and Type | Method and Description |
---|---|
String |
getCode()
获取CIN10码
|
CIN10.Gender |
getGender()
获取性别
|
String |
getProvince()
获取省份
|
boolean |
isVerified()
是否验证通过
|
static CIN10 |
of(String code)
创建并验证台湾、澳门、香港身份证号码
|
public CIN10(String code) throws IllegalArgumentException
code
- 身份证号码IllegalArgumentException
- 身份证格式不支持public static CIN10 of(String code)
code
- 台湾、澳门、香港身份证号码public String getCode()
public String getProvince()
public CIN10.Gender getGender()
public boolean isVerified()
Copyright © 2025. All rights reserved.