Package org.stellar.sdk.xdr
Class AllowTrustResult
java.lang.Object
org.stellar.sdk.xdr.AllowTrustResult
- All Implemented Interfaces:
XdrElement
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
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static AllowTrustResultdecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic AllowTrustResultfromXdrBase64(String xdr) static AllowTrustResultfromXdrByteArray(byte[] xdr) inthashCode()voidsetDiscriminant(AllowTrustResultCode discriminant) toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
AllowTrustResult
public AllowTrustResult() -
AllowTrustResult
-
-
Method Details
-
encode
- Specified by:
encodein interfaceXdrElement- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
setDiscriminant
-
equals
-
hashCode
public int hashCode() -
toString
-