Package org.stellar.sdk.xdr
Class RestoreFootprintResult
java.lang.Object
org.stellar.sdk.xdr.RestoreFootprintResult
- All Implemented Interfaces:
XdrElement
RestoreFootprintResult's original definition in the XDR file is:
union RestoreFootprintResult switch (RestoreFootprintResultCode code)
{
case RESTORE_FOOTPRINT_SUCCESS:
void;
case RESTORE_FOOTPRINT_MALFORMED:
case RESTORE_FOOTPRINT_RESOURCE_LIMIT_EXCEEDED:
case RESTORE_FOOTPRINT_INSUFFICIENT_REFUNDABLE_FEE:
void;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionRestoreFootprintResult(RestoreFootprintResultCode discriminant) Creates a newRestoreFootprintResultinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static RestoreFootprintResultdecode(XdrDataInputStream stream) static RestoreFootprintResultdecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic RestoreFootprintResultstatic RestoreFootprintResultfromXdrBase64(String xdr) static RestoreFootprintResultfromXdrByteArray(byte[] xdr) Value of thediscriminantfield.inthashCode()voidsetDiscriminant(RestoreFootprintResultCode discriminant) Value of thediscriminantfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
RestoreFootprintResult
public RestoreFootprintResult() -
RestoreFootprintResult
Creates a newRestoreFootprintResultinstance.- Parameters:
discriminant- thediscriminantfield value
-
-
Method Details
-
encode
Description copied from interface:XdrElementEncodes this value to XDR and writes it to the provided stream.- Specified by:
encodein interfaceXdrElement- Parameters:
stream- the destination XDR output stream- Throws:
IOException- if an I/O error occurs while writing the value
-
decode
public static RestoreFootprintResult decode(XdrDataInputStream stream, int maxDepth) throws IOException - Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
toJson
Description copied from interface:XdrElementSerializes this value to JSON.- Specified by:
toJsonin interfaceXdrElement- Returns:
- the JSON representation of this value
-
fromJson
-
builder
-
toBuilder
-
getDiscriminant
Value of thediscriminantfield.- Returns:
- the
discriminantfield value
-
setDiscriminant
Value of thediscriminantfield.- Parameters:
discriminant- thediscriminantfield value
-
equals
-
hashCode
public int hashCode() -
toString
-