Package org.stellar.sdk.xdr
Class GeneralizedTransactionSet
java.lang.Object
org.stellar.sdk.xdr.GeneralizedTransactionSet
- All Implemented Interfaces:
XdrElement
GeneralizedTransactionSet's original definition in the XDR file is:
union GeneralizedTransactionSet switch (int v)
{
// We consider the legacy TransactionSet to be v0.
case 1:
TransactionSetV1 v1TxSet;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionGeneralizedTransactionSet(Integer discriminant, TransactionSetV1 v1TxSet) Creates a newGeneralizedTransactionSetinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static GeneralizedTransactionSetdecode(XdrDataInputStream stream) static GeneralizedTransactionSetdecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic GeneralizedTransactionSetstatic GeneralizedTransactionSetfromXdrBase64(String xdr) static GeneralizedTransactionSetfromXdrByteArray(byte[] xdr) Value of thediscriminantfield.Value of thev1TxSetfield.inthashCode()voidsetDiscriminant(Integer discriminant) Value of thediscriminantfield.voidsetV1TxSet(TransactionSetV1 v1TxSet) Value of thev1TxSetfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
GeneralizedTransactionSet
public GeneralizedTransactionSet() -
GeneralizedTransactionSet
Creates a newGeneralizedTransactionSetinstance.- Parameters:
discriminant- thediscriminantfield valuev1TxSet- thev1TxSetfield 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 GeneralizedTransactionSet 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
-
getDiscriminant
Value of thediscriminantfield.- Returns:
- the
discriminantfield value
-
getV1TxSet
Value of thev1TxSetfield.- Returns:
- the
v1TxSetfield value
-
setDiscriminant
Value of thediscriminantfield.- Parameters:
discriminant- thediscriminantfield value
-
setV1TxSet
Value of thev1TxSetfield.- Parameters:
v1TxSet- thev1TxSetfield value
-
equals
-
hashCode
public int hashCode() -
toString
-