Package com.iizix.geo
Class RegionLocation.Connection
java.lang.Object
com.iizix.geo.RegionLocation.Connection
- Enclosing class:
RegionLocation
Connection class holding information about the connection.
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if two Connection objects are equal.getASN()
Returns the Autonomous System Number associated with the IP, null if not defined.getISP()
Returns the name of the ISP associated with the IP, null if not defined.int
hashCode()
Returns the hash code of the connection instance.toString()
String representation of the language as "[code,name,nativeName]" where the null values are omitted.
Method Details
getASN
Returns the Autonomous System Number associated with the IP, null if not defined.- Returns:
- The ASN.
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.equals
Checks if two Connection objects are equal.toString
String representation of the language as "[code,name,nativeName]" where the null values are omitted.