Package com.baremaps.iploc.data
Class InetnumLocation
java.lang.Object
com.baremaps.iploc.data.InetnumLocation
Contains an IP range along with its position in the world
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the nameReturns the countryReturns the ipv4 rangeReturns the locationReturns the networktoString()
-
Constructor Details
-
InetnumLocation
public InetnumLocation(String address, Ipv4Range ipv4Range, Location location, String network, String country) Create a new inetnum location- Parameters:
address- geo-address of the inetnumipv4Range- ip range from start to endlocation- location is lat/lonnetwork- name of the networkcountry- country code
-
-
Method Details
-
getAddress
Returns the name- Returns:
- the name
-
getIpv4Range
Returns the ipv4 range- Returns:
- the ipv4 range
-
getLocation
Returns the location- Returns:
- the location
-
getNetwork
Returns the network- Returns:
- the network
-
getCountry
Returns the country- Returns:
- the country
-
toString
-