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
-
Constructor Summary
ConstructorDescriptionPreconditions
(PreconditionType discriminant, TimeBounds timeBounds, PreconditionsV2 v2) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static Preconditions
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static Preconditions
fromXdrBase64
(String xdr) static Preconditions
fromXdrByteArray
(byte[] xdr) getV2()
int
hashCode()
void
setDiscriminant
(PreconditionType discriminant) void
setTimeBounds
(TimeBounds timeBounds) void
setV2
(PreconditionsV2 v2) toString()
default String
default 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
-