Package org.stellar.sdk.xdr
Class TimeSlicedSurveyStopCollectingMessage
java.lang.Object
org.stellar.sdk.xdr.TimeSlicedSurveyStopCollectingMessage
- All Implemented Interfaces:
XdrElement
TimeSlicedSurveyStopCollectingMessage's original definition in the XDR file is:
struct TimeSlicedSurveyStopCollectingMessage
{
NodeID surveyorID;
uint32 nonce;
uint32 ledgerNum;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionTimeSlicedSurveyStopCollectingMessage(NodeID surveyorID, Uint32 nonce, Uint32 ledgerNum) Creates a newTimeSlicedSurveyStopCollectingMessageinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()decode(XdrDataInputStream stream) decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanfromXdrBase64(String xdr) fromXdrByteArray(byte[] xdr) Value of theledgerNumfield.getNonce()Value of thenoncefield.Value of thesurveyorIDfield.inthashCode()voidsetLedgerNum(Uint32 ledgerNum) Value of theledgerNumfield.voidValue of thenoncefield.voidsetSurveyorID(NodeID surveyorID) Value of thesurveyorIDfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
TimeSlicedSurveyStopCollectingMessage
public TimeSlicedSurveyStopCollectingMessage() -
TimeSlicedSurveyStopCollectingMessage
Creates a newTimeSlicedSurveyStopCollectingMessageinstance.- Parameters:
surveyorID- thesurveyorIDfield valuenonce- thenoncefield valueledgerNum- theledgerNumfield 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 TimeSlicedSurveyStopCollectingMessage decode(XdrDataInputStream stream, int maxDepth) throws IOException - Throws:
IOException
-
decode
public static TimeSlicedSurveyStopCollectingMessage decode(XdrDataInputStream stream) throws IOException - 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
public static TimeSlicedSurveyStopCollectingMessage.TimeSlicedSurveyStopCollectingMessageBuilder builder() -
toBuilder
-
getSurveyorID
Value of thesurveyorIDfield.- Returns:
- the
surveyorIDfield value
-
getNonce
Value of thenoncefield.- Returns:
- the
noncefield value
-
getLedgerNum
Value of theledgerNumfield.- Returns:
- the
ledgerNumfield value
-
setSurveyorID
Value of thesurveyorIDfield.- Parameters:
surveyorID- thesurveyorIDfield value
-
setNonce
Value of thenoncefield.- Parameters:
nonce- thenoncefield value
-
setLedgerNum
Value of theledgerNumfield.- Parameters:
ledgerNum- theledgerNumfield value
-
equals
-
hashCode
public int hashCode() -
toString
-