Package net.datafaker.providers.base
Class Address
- Since:
- 0.8.0
-
Field Summary
Fields inherited from class net.datafaker.providers.base.AbstractProvider
faker
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncity()
cityName()
country()
countyByZipCode
(String postCode) eircode()
latitude()
latLon()
lonLat()
mailBox()
postcode()
state()
streetAddress
(boolean includeSecondary) timeZone()
zipCode()
Returns a String representing a standard 5-digit zip code.zipCodeByState
(String stateAbbr) Returns a String representing a ZIP+4 code for greater geographic specificity.Methods inherited from class net.datafaker.providers.base.AbstractProvider
equals, getFaker, hashCode, loadGenerators, resolve, resolve, toString
-
Constructor Details
-
Address
-
-
Method Details
-
streetName
-
streetAddressNumber
-
streetAddress
-
streetAddress
-
secondaryAddress
-
zipCode
Returns a String representing a standard 5-digit zip code.- Returns:
- a String representing a standard zip code
-
postcode
-
eircode
-
zipCodePlus4
Returns a String representing a ZIP+4 code for greater geographic specificity. This is a 9-digit zip code, but the String itself is 10 characters including the hyphen.- Returns:
- a String representing a ZIP+4 code
-
zipCodeByState
-
countyByZipCode
-
streetSuffix
-
streetPrefix
-
citySuffix
-
cityPrefix
-
city
-
cityName
-
state
-
stateAbbr
-
latitude
- Returns:
- Returns the latitude, a number between -90 to 90.
-
longitude
- Returns:
- Returns the longitude, a number between -180 and 180
-
latLon
- Returns:
- Returns the lat/lon coordinates formatted as lat,lon.
-
latLon
- Returns:
- Returns the lat/lon coordinates formatted as lat delimiter lon.
-
lonLat
- Returns:
- Returns the lat/lon coordinates formatted as lon,lat.
-
lonLat
- Returns:
- Returns the lat/lon coordinates formatted as lon delimiter lat.
-
timeZone
-
country
-
countryCode
-
buildingNumber
-
fullAddress
-
mailBox
-