Package org.stellar.sdk.xdr
Class TopologyResponseBodyV2
java.lang.Object
org.stellar.sdk.xdr.TopologyResponseBodyV2
- All Implemented Interfaces:
XdrElement
TopologyResponseBodyV2's original definition in the XDR file is:
struct TopologyResponseBodyV2
{
TimeSlicedPeerDataList inboundPeers;
TimeSlicedPeerDataList outboundPeers;
TimeSlicedNodeData nodeData;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionTopologyResponseBodyV2(TimeSlicedPeerDataList inboundPeers, TimeSlicedPeerDataList outboundPeers, TimeSlicedNodeData nodeData) Creates a newTopologyResponseBodyV2instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static TopologyResponseBodyV2decode(XdrDataInputStream stream) static TopologyResponseBodyV2decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic TopologyResponseBodyV2static TopologyResponseBodyV2fromXdrBase64(String xdr) static TopologyResponseBodyV2fromXdrByteArray(byte[] xdr) Value of theinboundPeersfield.Value of thenodeDatafield.Value of theoutboundPeersfield.inthashCode()voidsetInboundPeers(TimeSlicedPeerDataList inboundPeers) Value of theinboundPeersfield.voidsetNodeData(TimeSlicedNodeData nodeData) Value of thenodeDatafield.voidsetOutboundPeers(TimeSlicedPeerDataList outboundPeers) Value of theoutboundPeersfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
TopologyResponseBodyV2
public TopologyResponseBodyV2() -
TopologyResponseBodyV2
public TopologyResponseBodyV2(TimeSlicedPeerDataList inboundPeers, TimeSlicedPeerDataList outboundPeers, TimeSlicedNodeData nodeData) Creates a newTopologyResponseBodyV2instance.- Parameters:
inboundPeers- theinboundPeersfield valueoutboundPeers- theoutboundPeersfield valuenodeData- thenodeDatafield value
-
-
Method Details
-
encode
Description copied from interface:XdrElementEncodes this value to XDR and writes it to the provided stream.- Specified by:
encodein interfaceXdrElement- Parameters:
stream- the destination XDR output stream- Throws:
IOException- if an I/O error occurs while writing the value
-
decode
public static TopologyResponseBodyV2 decode(XdrDataInputStream stream, int maxDepth) throws IOException - Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
toJson
Description copied from interface:XdrElementSerializes this value to JSON.- Specified by:
toJsonin interfaceXdrElement- Returns:
- the JSON representation of this value
-
fromJson
-
builder
-
toBuilder
-
getInboundPeers
Value of theinboundPeersfield.- Returns:
- the
inboundPeersfield value
-
getOutboundPeers
Value of theoutboundPeersfield.- Returns:
- the
outboundPeersfield value
-
getNodeData
Value of thenodeDatafield.- Returns:
- the
nodeDatafield value
-
setInboundPeers
Value of theinboundPeersfield.- Parameters:
inboundPeers- theinboundPeersfield value
-
setOutboundPeers
Value of theoutboundPeersfield.- Parameters:
outboundPeers- theoutboundPeersfield value
-
setNodeData
Value of thenodeDatafield.- Parameters:
nodeData- thenodeDatafield value
-
equals
-
hashCode
public int hashCode() -
toString
-