Package org.stellar.sdk.xdr
Class AllowTrustResult
java.lang.Object
org.stellar.sdk.xdr.AllowTrustResult
AllowTrustResult's original definition in the XDR file is:
union AllowTrustResult switch (AllowTrustResultCode code) { case ALLOW_TRUST_SUCCESS: void; case ALLOW_TRUST_MALFORMED: case ALLOW_TRUST_NO_TRUST_LINE: case ALLOW_TRUST_TRUST_NOT_REQUIRED: case ALLOW_TRUST_CANT_REVOKE: case ALLOW_TRUST_SELF_NOT_ALLOWED: case ALLOW_TRUST_LOW_RESERVE: void; };
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static AllowTrustResult
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static AllowTrustResult
fromXdrBase64
(String xdr) static AllowTrustResult
fromXdrByteArray
(byte[] xdr) int
hashCode()
void
setDiscriminant
(AllowTrustResultCode discriminant) toString()
default String
default byte[]
-
Constructor Details
-
AllowTrustResult
public AllowTrustResult() -
AllowTrustResult
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
setDiscriminant
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-