Package org.stellar.sdk.xdr
Class PeerAddress.PeerAddressIp
java.lang.Object
org.stellar.sdk.xdr.PeerAddress.PeerAddressIp
- All Implemented Interfaces:
XdrElement
- 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
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static PeerAddress.PeerAddressIpdecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic PeerAddress.PeerAddressIpfromXdrBase64(String xdr) static PeerAddress.PeerAddressIpfromXdrByteArray(byte[] xdr) byte[]getIpv4()byte[]getIpv6()inthashCode()voidsetDiscriminant(IPAddrType discriminant) voidsetIpv4(byte[] ipv4) voidsetIpv6(byte[] ipv6) toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
PeerAddressIp
public PeerAddressIp() -
PeerAddressIp
-
-
Method Details
-
encode
- Specified by:
encodein interfaceXdrElement- 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
-