Package io.aether.api.common
Class CoderAndPort
- java.lang.Object
-
- io.aether.api.common.CoderAndPort
-
- All Implemented Interfaces:
CoderAndPortUtil,io.aether.utils.ToString
public class CoderAndPort extends java.lang.Object implements io.aether.utils.ToString, CoderAndPortUtil
-
-
Field Summary
Fields Modifier and Type Field Description protected AetherCodeccodecstatic io.aether.net.fastMeta.FastMetaType<CoderAndPort>METAstatic io.aether.net.fastMeta.FastMetaType<CoderAndPort>META_BODYprotected shortport
-
Constructor Summary
Constructors Constructor Description CoderAndPort(AetherCodec codec, short port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)AetherCodecgetCodec()shortgetPort()inthashCode()voidtoString(io.aether.utils.AString sb)
-
-
-
Field Detail
-
META_BODY
public static final io.aether.net.fastMeta.FastMetaType<CoderAndPort> META_BODY
-
META
public static final io.aether.net.fastMeta.FastMetaType<CoderAndPort> META
-
codec
protected final AetherCodec codec
-
port
protected final short port
-
-
Constructor Detail
-
CoderAndPort
public CoderAndPort(AetherCodec codec, short port)
-
-
Method Detail
-
getCodec
public AetherCodec getCodec()
-
getPort
public short getPort()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public void toString(io.aether.utils.AString sb)
- Specified by:
toStringin interfaceio.aether.utils.ToString
-
-