public class ClaimableBalanceEntry extends java.lang.Object implements XdrElement
struct ClaimableBalanceEntry { // Unique identifier for this ClaimableBalanceEntry ClaimableBalanceID balanceID; // List of claimants with associated predicate Claimant claimants<10>; // Any asset including native Asset asset; // Amount of asset int64 amount; // reserved for future use union switch (int v) { case 0: void; case 1: ClaimableBalanceEntryExtensionV1 v1; } ext; };
Modifier and Type | Class and Description |
---|---|
static class |
ClaimableBalanceEntry.ClaimableBalanceEntryBuilder |
static class |
ClaimableBalanceEntry.ClaimableBalanceEntryExt
ClaimableBalanceEntryExt's original definition in the XDR file is:
|
Constructor and Description |
---|
ClaimableBalanceEntry() |
ClaimableBalanceEntry(ClaimableBalanceID balanceID,
Claimant[] claimants,
Asset asset,
Int64 amount,
ClaimableBalanceEntry.ClaimableBalanceEntryExt ext) |
Modifier and Type | Method and Description |
---|---|
static ClaimableBalanceEntry.ClaimableBalanceEntryBuilder |
builder() |
static ClaimableBalanceEntry |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static ClaimableBalanceEntry |
fromXdrBase64(java.lang.String xdr) |
static ClaimableBalanceEntry |
fromXdrByteArray(byte[] xdr) |
Int64 |
getAmount() |
Asset |
getAsset() |
ClaimableBalanceID |
getBalanceID() |
Claimant[] |
getClaimants() |
ClaimableBalanceEntry.ClaimableBalanceEntryExt |
getExt() |
int |
hashCode() |
void |
setAmount(Int64 amount) |
void |
setAsset(Asset asset) |
void |
setBalanceID(ClaimableBalanceID balanceID) |
void |
setClaimants(Claimant[] claimants) |
void |
setExt(ClaimableBalanceEntry.ClaimableBalanceEntryExt ext) |
ClaimableBalanceEntry.ClaimableBalanceEntryBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArray
public ClaimableBalanceEntry()
public ClaimableBalanceEntry(ClaimableBalanceID balanceID, Claimant[] claimants, Asset asset, Int64 amount, ClaimableBalanceEntry.ClaimableBalanceEntryExt ext)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static ClaimableBalanceEntry decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static ClaimableBalanceEntry fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static ClaimableBalanceEntry fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static ClaimableBalanceEntry.ClaimableBalanceEntryBuilder builder()
public ClaimableBalanceEntry.ClaimableBalanceEntryBuilder toBuilder()
public ClaimableBalanceID getBalanceID()
public Claimant[] getClaimants()
public Asset getAsset()
public Int64 getAmount()
public ClaimableBalanceEntry.ClaimableBalanceEntryExt getExt()
public void setBalanceID(ClaimableBalanceID balanceID)
public void setClaimants(Claimant[] claimants)
public void setAsset(Asset asset)
public void setAmount(Int64 amount)
public void setExt(ClaimableBalanceEntry.ClaimableBalanceEntryExt ext)
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