Package io.aether.api.common
Class IPAddressAndPorts
- java.lang.Object
-
- io.aether.api.common.IPAddressAndPorts
-
- All Implemented Interfaces:
io.aether.utils.ToString
public class IPAddressAndPorts extends java.lang.Object implements io.aether.utils.ToString
-
-
Field Summary
Fields Modifier and Type Field Description protected IPAddressaddressprotected CoderAndPort[]coderAndPortsstatic io.aether.net.fastMeta.FastMetaType<IPAddressAndPorts>METAstatic io.aether.net.fastMeta.FastMetaType<IPAddressAndPorts>META_BODY
-
Constructor Summary
Constructors Constructor Description IPAddressAndPorts(IPAddress address, CoderAndPort[] coderAndPorts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancoderAndPortsContains(CoderAndPort el)booleanequals(java.lang.Object o)IPAddressgetAddress()CoderAndPort[]getCoderAndPorts()inthashCode()java.lang.StringtoString()voidtoString(io.aether.utils.AString sb)
-
-
-
Field Detail
-
META_BODY
public static final io.aether.net.fastMeta.FastMetaType<IPAddressAndPorts> META_BODY
-
META
public static final io.aether.net.fastMeta.FastMetaType<IPAddressAndPorts> META
-
address
protected final IPAddress address
-
coderAndPorts
protected final CoderAndPort[] coderAndPorts
-
-
Constructor Detail
-
IPAddressAndPorts
public IPAddressAndPorts(IPAddress address, CoderAndPort[] coderAndPorts)
-
-
Method Detail
-
getAddress
public IPAddress getAddress()
-
getCoderAndPorts
public CoderAndPort[] getCoderAndPorts()
-
coderAndPortsContains
public boolean coderAndPortsContains(CoderAndPort 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
-
toString
public void toString(io.aether.utils.AString sb)
- Specified by:
toStringin interfaceio.aether.utils.ToString
-
-