Class IpInformation
- java.lang.Object
-
- technology.dice.dicewhere.api.api.IpInformation
-
public class IpInformation extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIpInformation.Builder
-
Constructor Summary
Constructors Constructor Description IpInformation(String countryCodeAlpha2, String cityGeonameId, String city, String leastSpecificDivision, String mostSpecificDivision, String postcode, IP startOfRange, IP endOfRange, String originalLine, Boolean isVpn, Boolean isHostingProvider)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IpInformation.Builderbuilder()static IpInformation.Builderbuilder(IpInformation info)booleanequals(Object o)Optional<String>getCity()Optional<String>getCityGeonameId()StringgetCountryCodeAlpha2()IPgetEndOfRange()Optional<String>getLeastSpecificDivision()Optional<String>getMostSpecificDivision()Optional<String>getOriginalLine()Optional<String>getPostcode()IPgetStartOfRange()inthashCode()Optional<Boolean>isHostingProvider()Optional<Boolean>isVpn()StringtoString()
-
-
-
Constructor Detail
-
IpInformation
public IpInformation(@Nonnull String countryCodeAlpha2, @Nullable String cityGeonameId, @Nullable String city, @Nullable String leastSpecificDivision, @Nullable String mostSpecificDivision, @Nullable String postcode, @Nonnull IP startOfRange, @Nonnull IP endOfRange, @Nullable String originalLine, @Nullable Boolean isVpn, @Nullable Boolean isHostingProvider)
- Parameters:
countryCodeAlpha2- the country of this locationcityGeonameId- the geoname identifier of this city (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 provider
-
-
Method Detail
-
getCountryCodeAlpha2
public String getCountryCodeAlpha2()
-
getStartOfRange
public IP getStartOfRange()
-
getEndOfRange
public IP getEndOfRange()
-
builder
public static IpInformation.Builder builder()
-
builder
public static IpInformation.Builder builder(IpInformation info)
-
-