public class AreaSource extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static AreaSource |
getInstance()
获取唯一实例
|
Area |
nextArea()
获取随机的地区信息
|
String |
randomAddress()
获取随机的详细地址
|
String |
randomCity(String separator)
随机城市名称
|
CountryOrRegionCode |
randomCountryOrRegionCode()
随机国家或地区编码信息(不限首字母)
|
CountryOrRegionCode |
randomCountryOrRegionCode(String startsWith)
随机国家或地区编码信息
|
double |
randomLatitude()
随机纬度(中国)
|
double |
randomLongitude()
随机经度(中国)
|
String |
randomPhoneCode(String province)
随机固话区号
|
String |
randomPhoneNumber(String province,
String delimiter)
随机固话号码
|
String |
randomProvince()
随机省级行政区名称
|
String |
randomZipCode()
随机邮编
|
public static AreaSource getInstance()
public Area nextArea()
public String randomProvince()
public String randomZipCode()
public String randomAddress()
public double randomLatitude()
public double randomLongitude()
public String randomPhoneNumber(String province, String delimiter)
province - 省份delimiter - 区号和号码之间的分隔符public CountryOrRegionCode randomCountryOrRegionCode(String startsWith)
startsWith - 首字母(不区分大小写)public CountryOrRegionCode randomCountryOrRegionCode()
Copyright © 2021. All rights reserved.