public class GeneralizedTransactionSet extends java.lang.Object implements XdrElement
union GeneralizedTransactionSet switch (int v) { // We consider the legacy TransactionSet to be v0. case 1: TransactionSetV1 v1TxSet; };
Modifier and Type | Class and Description |
---|---|
static class |
GeneralizedTransactionSet.GeneralizedTransactionSetBuilder |
Constructor and Description |
---|
GeneralizedTransactionSet() |
GeneralizedTransactionSet(java.lang.Integer discriminant,
TransactionSetV1 v1TxSet) |
Modifier and Type | Method and Description |
---|---|
static GeneralizedTransactionSet.GeneralizedTransactionSetBuilder |
builder() |
static GeneralizedTransactionSet |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static GeneralizedTransactionSet |
fromXdrBase64(java.lang.String xdr) |
static GeneralizedTransactionSet |
fromXdrByteArray(byte[] xdr) |
java.lang.Integer |
getDiscriminant() |
TransactionSetV1 |
getV1TxSet() |
int |
hashCode() |
void |
setDiscriminant(java.lang.Integer discriminant) |
void |
setV1TxSet(TransactionSetV1 v1TxSet) |
GeneralizedTransactionSet.GeneralizedTransactionSetBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArray
public GeneralizedTransactionSet()
public GeneralizedTransactionSet(java.lang.Integer discriminant, TransactionSetV1 v1TxSet)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static GeneralizedTransactionSet decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static GeneralizedTransactionSet fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static GeneralizedTransactionSet fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static GeneralizedTransactionSet.GeneralizedTransactionSetBuilder builder()
public GeneralizedTransactionSet.GeneralizedTransactionSetBuilder toBuilder()
public java.lang.Integer getDiscriminant()
public TransactionSetV1 getV1TxSet()
public void setDiscriminant(java.lang.Integer discriminant)
public void setV1TxSet(TransactionSetV1 v1TxSet)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object