Package io.aether.api.common
Class ServerDescriptorWithGeo
- java.lang.Object
-
- io.aether.api.common.ServerDescriptorWithGeo
-
- All Implemented Interfaces:
io.aether.utils.ToString
public class ServerDescriptorWithGeo extends java.lang.Object implements io.aether.utils.ToString
-
-
Field Summary
Fields Modifier and Type Field Description protected shortidprotected IPAddressAndPortsListipAddressprotected doublelatitudeprotected doublelongitudestatic io.aether.net.fastMeta.FastMetaType<ServerDescriptorWithGeo>METAstatic io.aether.net.fastMeta.FastMetaType<ServerDescriptorWithGeo>META_BODYprotected SignedKey[]signingKeysprotected inttimeprotected ServerTypetype
-
Constructor Summary
Constructors Constructor Description ServerDescriptorWithGeo(short id, int time, IPAddressAndPortsList ipAddress, double latitude, double longitude, ServerType type, SignedKey[] signingKeys)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)shortgetId()IPAddressAndPortsListgetIpAddress()doublegetLatitude()doublegetLongitude()SignedKey[]getSigningKeys()intgetTime()ServerTypegetType()inthashCode()booleansigningKeysContains(SignedKey el)io.aether.utils.AStringtoAString(io.aether.utils.AString sb)java.lang.StringtoString()
-
-
-
Field Detail
-
META_BODY
public static final io.aether.net.fastMeta.FastMetaType<ServerDescriptorWithGeo> META_BODY
-
META
public static final io.aether.net.fastMeta.FastMetaType<ServerDescriptorWithGeo> META
-
id
protected final short id
-
time
protected final int time
-
ipAddress
protected final IPAddressAndPortsList ipAddress
-
latitude
protected final double latitude
-
longitude
protected final double longitude
-
type
protected final ServerType type
-
signingKeys
protected final SignedKey[] signingKeys
-
-
Constructor Detail
-
ServerDescriptorWithGeo
public ServerDescriptorWithGeo(short id, int time, IPAddressAndPortsList ipAddress, double latitude, double longitude, ServerType type, SignedKey[] signingKeys)
-
-
Method Detail
-
getId
public short getId()
-
getTime
public int getTime()
-
getIpAddress
public IPAddressAndPortsList getIpAddress()
-
getLatitude
public double getLatitude()
-
getLongitude
public double getLongitude()
-
getType
public ServerType getType()
-
getSigningKeys
public SignedKey[] getSigningKeys()
-
signingKeysContains
public boolean signingKeysContains(SignedKey el)
-
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
-
-