Package org.stellar.sdk.xdr
Class TransactionSetV1
java.lang.Object
org.stellar.sdk.xdr.TransactionSetV1
- All Implemented Interfaces:
XdrElement
TransactionSetV1's original definition in the XDR file is:
struct TransactionSetV1
{
Hash previousLedgerHash;
TransactionPhase phases<>;
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionTransactionSetV1(Hash previousLedgerHash, TransactionPhase[] phases) Creates a newTransactionSetV1instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static TransactionSetV1decode(XdrDataInputStream stream) static TransactionSetV1decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic TransactionSetV1static TransactionSetV1fromXdrBase64(String xdr) static TransactionSetV1fromXdrByteArray(byte[] xdr) Value of thephasesfield.Value of thepreviousLedgerHashfield.inthashCode()voidsetPhases(TransactionPhase[] phases) Value of thephasesfield.voidsetPreviousLedgerHash(Hash previousLedgerHash) Value of thepreviousLedgerHashfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
TransactionSetV1
public TransactionSetV1() -
TransactionSetV1
Creates a newTransactionSetV1instance.- Parameters:
previousLedgerHash- thepreviousLedgerHashfield valuephases- thephasesfield 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
- 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
-
getPreviousLedgerHash
Value of thepreviousLedgerHashfield.- Returns:
- the
previousLedgerHashfield value
-
getPhases
Value of thephasesfield.- Returns:
- the
phasesfield value
-
setPreviousLedgerHash
Value of thepreviousLedgerHashfield.- Parameters:
previousLedgerHash- thepreviousLedgerHashfield value
-
setPhases
Value of thephasesfield.- Parameters:
phases- thephasesfield value
-
equals
-
hashCode
public int hashCode() -
toString
-