Package com.iizix.geo

Class RegionLocation.Connection

java.lang.Object
com.iizix.geo.RegionLocation.Connection
Enclosing class:
RegionLocation

public static class RegionLocation.Connection extends Object
Connection class holding information about the connection.
  • Method Details

    • getASN

      public String getASN()
      Returns the Autonomous System Number associated with the IP, null if not defined.
      Returns:
      The ASN.
    • getISP

      public String getISP()
      Returns the name of the ISP associated with the IP, null if not defined.
      Returns:
      The ISP name.
    • hashCode

      public int hashCode()
      Returns the hash code of the connection instance.
      Overrides:
      hashCode in class Object
      Returns:
      The hash code.
    • equals

      public boolean equals(Object obj)
      Checks if two Connection objects are equal.
      Overrides:
      equals in class Object
      Returns:
      The equality flag.
    • toString

      public String toString()
      String representation of the language as "[code,name,nativeName]" where the null values are omitted.
      Overrides:
      toString in class Object
      Returns:
      The string representation.