Package com.iizix.geo

Class RegionLocation.Connection

  • Enclosing class:
    RegionLocation

    public static class RegionLocation.Connection
    extends java.lang.Object
    Connection class holding information about the connection.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      booleanequals​(java.lang.Object obj)
      Checks if two Connection objects are equal.
      java.lang.StringgetASN()
      Returns the Autonomous System Number associated with the IP, null if not defined.
      java.lang.StringgetISP()
      Returns the name of the ISP associated with the IP, null if not defined.
      inthashCode()
      Returns the hash code of the connection instance.
      java.lang.StringtoString()
      String representation of the language as "[code,name,nativeName]" where the null values are omitted.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getASN

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

        public java.lang.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 java.lang.Object
        Returns:
        The hash code.
      • equals

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

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