Package io.aether.api.common
Class IpInfo
- java.lang.Object
-
- io.aether.api.common.IpInfo
-
- All Implemented Interfaces:
io.aether.utils.ToString
public class IpInfo extends java.lang.Object implements io.aether.utils.ToString
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)IPAddressgetIp()doublegetLatitude()doublegetLongitude()shortgetPort()inthashCode()io.aether.utils.AStringtoAString(io.aether.utils.AString sb)java.lang.StringtoString()
-
-
-
Field Detail
-
META_BODY
public static final io.aether.net.fastMeta.FastMetaType<IpInfo> META_BODY
-
META
public static final io.aether.net.fastMeta.FastMetaType<IpInfo> META
-
ip
protected final IPAddress ip
-
port
protected final short port
-
latitude
protected final double latitude
-
longitude
protected final double longitude
-
-
Constructor Detail
-
IpInfo
public IpInfo(IPAddress ip, short port, double latitude, double longitude)
-
-
Method Detail
-
getIp
public IPAddress getIp()
-
getPort
public short getPort()
-
getLatitude
public double getLatitude()
-
getLongitude
public double getLongitude()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toAString
public io.aether.utils.AString toAString(io.aether.utils.AString sb)
- Specified by:
toAStringin interfaceio.aether.utils.ToString
-
-