public class Hello extends java.lang.Object implements XdrElement
struct Hello { uint32 ledgerVersion; uint32 overlayVersion; uint32 overlayMinVersion; Hash networkID; string versionStr<100>; int listeningPort; NodeID peerID; AuthCert cert; uint256 nonce; };
Modifier and Type | Class and Description |
---|---|
static class |
Hello.HelloBuilder |
Constructor and Description |
---|
Hello() |
Hello(Uint32 ledgerVersion,
Uint32 overlayVersion,
Uint32 overlayMinVersion,
Hash networkID,
XdrString versionStr,
java.lang.Integer listeningPort,
NodeID peerID,
AuthCert cert,
Uint256 nonce) |
toXdrBase64, toXdrByteArray
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static Hello decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static Hello fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static Hello fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static Hello.HelloBuilder builder()
public Hello.HelloBuilder toBuilder()
public Uint32 getLedgerVersion()
public Uint32 getOverlayVersion()
public Uint32 getOverlayMinVersion()
public Hash getNetworkID()
public XdrString getVersionStr()
public java.lang.Integer getListeningPort()
public NodeID getPeerID()
public AuthCert getCert()
public Uint256 getNonce()
public void setLedgerVersion(Uint32 ledgerVersion)
public void setOverlayVersion(Uint32 overlayVersion)
public void setOverlayMinVersion(Uint32 overlayMinVersion)
public void setNetworkID(Hash networkID)
public void setVersionStr(XdrString versionStr)
public void setListeningPort(java.lang.Integer listeningPort)
public void setPeerID(NodeID peerID)
public void setCert(AuthCert cert)
public void setNonce(Uint256 nonce)
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