Package io.aether.api.common
Class ServerDescriptor
- java.lang.Object
-
- io.aether.api.common.ServerDescriptor
-
- All Implemented Interfaces:
io.aether.utils.ToString
public class ServerDescriptor extends java.lang.Object implements io.aether.utils.ToString
-
-
Field Summary
Fields Modifier and Type Field Description protected shortidprotected IPAddressAndPortsListipAddressstatic io.aether.net.fastMeta.FastMetaType<ServerDescriptor>METAstatic io.aether.net.fastMeta.FastMetaType<ServerDescriptor>META_BODY
-
Constructor Summary
Constructors Constructor Description ServerDescriptor(short id, IPAddressAndPortsList ipAddress)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)shortgetId()IPAddressAndPortsListgetIpAddress()inthashCode()java.lang.StringtoString()voidtoString(io.aether.utils.AString sb)
-
-
-
Field Detail
-
META_BODY
public static final io.aether.net.fastMeta.FastMetaType<ServerDescriptor> META_BODY
-
META
public static final io.aether.net.fastMeta.FastMetaType<ServerDescriptor> META
-
id
protected final short id
-
ipAddress
protected final IPAddressAndPortsList ipAddress
-
-
Constructor Detail
-
ServerDescriptor
public ServerDescriptor(short id, IPAddressAndPortsList ipAddress)
-
-
Method Detail
-
getId
public short getId()
-
getIpAddress
public IPAddressAndPortsList getIpAddress()
-
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
-
toString
public void toString(io.aether.utils.AString sb)
- Specified by:
toStringin interfaceio.aether.utils.ToString
-
-