public static class PeerAddress.PeerAddressIp extends java.lang.Object implements XdrElement
union switch (IPAddrType type) { case IPv4: opaque ipv4[4]; case IPv6: opaque ipv6[16]; }
Modifier and Type | Class and Description |
---|---|
static class |
PeerAddress.PeerAddressIp.PeerAddressIpBuilder |
Constructor and Description |
---|
PeerAddressIp() |
PeerAddressIp(IPAddrType discriminant,
byte[] ipv4,
byte[] ipv6) |
Modifier and Type | Method and Description |
---|---|
static PeerAddress.PeerAddressIp.PeerAddressIpBuilder |
builder() |
static PeerAddress.PeerAddressIp |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static PeerAddress.PeerAddressIp |
fromXdrBase64(java.lang.String xdr) |
static PeerAddress.PeerAddressIp |
fromXdrByteArray(byte[] xdr) |
IPAddrType |
getDiscriminant() |
byte[] |
getIpv4() |
byte[] |
getIpv6() |
int |
hashCode() |
void |
setDiscriminant(IPAddrType discriminant) |
void |
setIpv4(byte[] ipv4) |
void |
setIpv6(byte[] ipv6) |
PeerAddress.PeerAddressIp.PeerAddressIpBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArray
public PeerAddressIp()
public PeerAddressIp(IPAddrType discriminant, byte[] ipv4, byte[] ipv6)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static PeerAddress.PeerAddressIp decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static PeerAddress.PeerAddressIp fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static PeerAddress.PeerAddressIp fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static PeerAddress.PeerAddressIp.PeerAddressIpBuilder builder()
public PeerAddress.PeerAddressIp.PeerAddressIpBuilder toBuilder()
public IPAddrType getDiscriminant()
public byte[] getIpv4()
public byte[] getIpv6()
public void setDiscriminant(IPAddrType discriminant)
public void setIpv4(byte[] ipv4)
public void setIpv6(byte[] ipv6)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object