Package org.stellar.sdk.xdr
Class Preconditions
java.lang.Object
org.stellar.sdk.xdr.Preconditions
Preconditions's original definition in the XDR file is:
union Preconditions switch (PreconditionType type)
{
case PRECOND_NONE:
void;
case PRECOND_TIME:
TimeBounds timeBounds;
case PRECOND_V2:
PreconditionsV2 v2;
};
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPreconditions(PreconditionType discriminant, TimeBounds timeBounds, PreconditionsV2 v2) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static Preconditionsdecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic PreconditionsfromXdrBase64(String xdr) static PreconditionsfromXdrByteArray(byte[] xdr) getV2()inthashCode()voidsetDiscriminant(PreconditionType discriminant) voidsetTimeBounds(TimeBounds timeBounds) voidsetV2(PreconditionsV2 v2) toString()default Stringdefault byte[]
-
Constructor Details
-
Preconditions
public Preconditions() -
Preconditions
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getTimeBounds
-
getV2
-
setDiscriminant
-
setTimeBounds
-
setV2
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-