Package com.iizix.geo
Class RegionLocation.Connection
- java.lang.Object
- com.iizix.geo.RegionLocation.Connection
- Enclosing class:
- RegionLocation
public static class RegionLocation.Connection extends java.lang.ObjectConnection class holding information about the connection.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
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:
hashCodein classjava.lang.Object- Returns:
- The hash code.
equals
public boolean equals(java.lang.Object obj)
Checks if two Connection objects are equal.- Overrides:
equalsin classjava.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:
toStringin classjava.lang.Object- Returns:
- The string representation.