public class IpInformation extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
IpInformation.Builder |
| Constructor and Description |
|---|
IpInformation(String countryCodeAlpha2,
String geonameId,
String city,
String leastSpecificDivision,
String mostSpecificDivision,
String postcode,
IP startOfRange,
IP endOfRange,
String originalLine,
Boolean isVpn) |
| Modifier and Type | Method and Description |
|---|---|
static IpInformation.Builder |
builder() |
static IpInformation.Builder |
builder(IpInformation info) |
boolean |
equals(Object o) |
Optional<String> |
getCity() |
String |
getCountryCodeAlpha2() |
IP |
getEndOfRange() |
Optional<String> |
getGeonameId() |
Optional<String> |
getLeastSpecificDivision() |
Optional<String> |
getMostSpecificDivision() |
Optional<String> |
getOriginalLine() |
Optional<String> |
getPostcode() |
IP |
getStartOfRange() |
int |
hashCode() |
Optional<Boolean> |
isVpn() |
String |
toString() |
public IpInformation(@Nonnull String countryCodeAlpha2, @Nullable String geonameId, @Nullable String city, @Nullable String leastSpecificDivision, @Nullable String mostSpecificDivision, @Nullable String postcode, @Nonnull IP startOfRange, @Nonnull IP endOfRange, @Nullable String originalLine, @Nullable Boolean isVpn)
countryCodeAlpha2 - the country of this locationgeonameId - the geoname identifier of this location (https://www.geonames.org/) This field
will be Optional.empty() if an empty string is passedcity - the city of this location. This field will be Optional.empty() if an empty string
is passedleastSpecificDivision - the least specific administrative division of this location. This
field will be Optional.empty() if an empty string is passedmostSpecificDivision - the most specific administrative division of this location. This
field will be Optional.empty() if an empty string is passedpostcode - the postcode of this location. This field will be Optional.empty() if an empty
string is passedstartOfRange - the first IP of the range of IPs located in this locationendOfRange - the last IP of the range of IPs located in this locationoriginalLine - the database line that got processed into this location objectisVpn - whether this range is marked as VPN from the DB providerpublic String getCountryCodeAlpha2()
public IP getStartOfRange()
public IP getEndOfRange()
public static IpInformation.Builder builder()
public static IpInformation.Builder builder(IpInformation info)
Copyright © 2021. All rights reserved.