Class InetnumLocation

java.lang.Object
com.baremaps.iploc.data.InetnumLocation

public class InetnumLocation extends Object
Contains an IP range along with its position in the world
  • 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 inetnum
      ipv4Range - ip range from start to end
      location - location is lat/lon
      network - name of the network
      country - country code
  • Method Details

    • getAddress

      public String getAddress()
      Returns the name
      Returns:
      the name
    • getIpv4Range

      public Ipv4Range getIpv4Range()
      Returns the ipv4 range
      Returns:
      the ipv4 range
    • getLocation

      public Location getLocation()
      Returns the location
      Returns:
      the location
    • getNetwork

      public String getNetwork()
      Returns the network
      Returns:
      the network
    • getCountry

      public String getCountry()
      Returns the country
      Returns:
      the country
    • toString

      public String toString()
      Overrides:
      toString in class Object