public class AllowTrustResult extends java.lang.Object implements XdrElement
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; };
Modifier and Type | Class and Description |
---|---|
static class |
AllowTrustResult.AllowTrustResultBuilder |
Constructor and Description |
---|
AllowTrustResult() |
AllowTrustResult(AllowTrustResultCode discriminant) |
Modifier and Type | Method and Description |
---|---|
static AllowTrustResult.AllowTrustResultBuilder |
builder() |
static AllowTrustResult |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static AllowTrustResult |
fromXdrBase64(java.lang.String xdr) |
static AllowTrustResult |
fromXdrByteArray(byte[] xdr) |
AllowTrustResultCode |
getDiscriminant() |
int |
hashCode() |
void |
setDiscriminant(AllowTrustResultCode discriminant) |
AllowTrustResult.AllowTrustResultBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArray
public AllowTrustResult()
public AllowTrustResult(AllowTrustResultCode discriminant)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static AllowTrustResult decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static AllowTrustResult fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static AllowTrustResult fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static AllowTrustResult.AllowTrustResultBuilder builder()
public AllowTrustResult.AllowTrustResultBuilder toBuilder()
public AllowTrustResultCode getDiscriminant()
public void setDiscriminant(AllowTrustResultCode discriminant)
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