Package org.stellar.sdk.xdr
Class ClaimableBalanceEntry
java.lang.Object
org.stellar.sdk.xdr.ClaimableBalanceEntry
ClaimableBalanceEntry's original definition in the XDR file is:
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;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classClaimableBalanceEntryExt's original definition in the XDR file is: -
Constructor Summary
ConstructorsConstructorDescriptionClaimableBalanceEntry(ClaimableBalanceID balanceID, Claimant[] claimants, Asset asset, Int64 amount, ClaimableBalanceEntry.ClaimableBalanceEntryExt ext) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static ClaimableBalanceEntrydecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic ClaimableBalanceEntryfromXdrBase64(String xdr) static ClaimableBalanceEntryfromXdrByteArray(byte[] xdr) getAsset()Claimant[]getExt()inthashCode()voidvoidvoidsetBalanceID(ClaimableBalanceID balanceID) voidsetClaimants(Claimant[] claimants) voidtoString()default Stringdefault byte[]
-
Constructor Details
-
ClaimableBalanceEntry
public ClaimableBalanceEntry() -
ClaimableBalanceEntry
public ClaimableBalanceEntry(ClaimableBalanceID balanceID, Claimant[] claimants, Asset asset, Int64 amount, ClaimableBalanceEntry.ClaimableBalanceEntryExt ext)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getBalanceID
-
getClaimants
-
getAsset
-
getAmount
-
getExt
-
setBalanceID
-
setClaimants
-
setAsset
-
setAmount
-
setExt
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-