Package org.stellar.sdk.xdr
Class PeerAddress.PeerAddressIp
java.lang.Object
org.stellar.sdk.xdr.PeerAddress.PeerAddressIp
- Enclosing class:
PeerAddress
PeerAddressIp's original definition in the XDR file is:
union switch (IPAddrType type) { case IPv4: opaque ipv4[4]; case IPv6: opaque ipv6[16]; }
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static PeerAddress.PeerAddressIp
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static PeerAddress.PeerAddressIp
fromXdrBase64
(String xdr) static PeerAddress.PeerAddressIp
fromXdrByteArray
(byte[] xdr) byte[]
getIpv4()
byte[]
getIpv6()
int
hashCode()
void
setDiscriminant
(IPAddrType discriminant) void
setIpv4
(byte[] ipv4) void
setIpv6
(byte[] ipv6) toString()
default String
default byte[]
-
Constructor Details
-
PeerAddressIp
public PeerAddressIp() -
PeerAddressIp
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getIpv4
public byte[] getIpv4() -
getIpv6
public byte[] getIpv6() -
setDiscriminant
-
setIpv4
public void setIpv4(byte[] ipv4) -
setIpv6
public void setIpv6(byte[] ipv6) -
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-