Package org.stellar.sdk.xdr
Class TransactionPhase
java.lang.Object
org.stellar.sdk.xdr.TransactionPhase
- All Implemented Interfaces:
XdrElement
TransactionPhase's original definition in the XDR file is:
union TransactionPhase switch (int v)
{
case 0:
TxSetComponent v0Components<>;
case 1:
ParallelTxsComponent parallelTxsComponent;
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionTransactionPhase(Integer discriminant, TxSetComponent[] v0Components, ParallelTxsComponent parallelTxsComponent) Creates a newTransactionPhaseinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static TransactionPhasedecode(XdrDataInputStream stream) static TransactionPhasedecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic TransactionPhasestatic TransactionPhasefromXdrBase64(String xdr) static TransactionPhasefromXdrByteArray(byte[] xdr) Value of thediscriminantfield.Value of theparallelTxsComponentfield.Value of thev0Componentsfield.inthashCode()voidsetDiscriminant(Integer discriminant) Value of thediscriminantfield.voidsetParallelTxsComponent(ParallelTxsComponent parallelTxsComponent) Value of theparallelTxsComponentfield.voidsetV0Components(TxSetComponent[] v0Components) Value of thev0Componentsfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
TransactionPhase
public TransactionPhase() -
TransactionPhase
public TransactionPhase(Integer discriminant, TxSetComponent[] v0Components, ParallelTxsComponent parallelTxsComponent) Creates a newTransactionPhaseinstance.- Parameters:
discriminant- thediscriminantfield valuev0Components- thev0Componentsfield valueparallelTxsComponent- theparallelTxsComponentfield 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
-
getDiscriminant
Value of thediscriminantfield.- Returns:
- the
discriminantfield value
-
getV0Components
Value of thev0Componentsfield.- Returns:
- the
v0Componentsfield value
-
getParallelTxsComponent
Value of theparallelTxsComponentfield.- Returns:
- the
parallelTxsComponentfield value
-
setDiscriminant
Value of thediscriminantfield.- Parameters:
discriminant- thediscriminantfield value
-
setV0Components
Value of thev0Componentsfield.- Parameters:
v0Components- thev0Componentsfield value
-
setParallelTxsComponent
Value of theparallelTxsComponentfield.- Parameters:
parallelTxsComponent- theparallelTxsComponentfield value
-
equals
-
hashCode
public int hashCode() -
toString
-