Package org.stellar.sdk.xdr
Class TrustLineEntry
java.lang.Object
org.stellar.sdk.xdr.TrustLineEntry
TrustLineEntry's original definition in the XDR file is:
struct TrustLineEntry { AccountID accountID; // account this trustline belongs to TrustLineAsset asset; // type of asset (with issuer) int64 balance; // how much of this asset the user has. // Asset defines the unit for this; int64 limit; // balance cannot be above this uint32 flags; // see TrustLineFlags // reserved for future use union switch (int v) { case 0: void; case 1: struct { Liabilities liabilities; union switch (int v) { case 0: void; case 2: TrustLineEntryExtensionV2 v2; } ext; } v1; } ext; };
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
TrustLineEntryExt's original definition in the XDR file is: -
Constructor Summary
ConstructorDescriptionTrustLineEntry
(AccountID accountID, TrustLineAsset asset, Int64 balance, Int64 limit, Uint32 flags, TrustLineEntry.TrustLineEntryExt ext) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static TrustLineEntry
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static TrustLineEntry
fromXdrBase64
(String xdr) static TrustLineEntry
fromXdrByteArray
(byte[] xdr) getAsset()
getExt()
getFlags()
getLimit()
int
hashCode()
void
setAccountID
(AccountID accountID) void
setAsset
(TrustLineAsset asset) void
setBalance
(Int64 balance) void
void
void
toString()
default String
default byte[]
-
Constructor Details
-
TrustLineEntry
public TrustLineEntry() -
TrustLineEntry
public TrustLineEntry(AccountID accountID, TrustLineAsset asset, Int64 balance, Int64 limit, Uint32 flags, TrustLineEntry.TrustLineEntryExt ext)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getAccountID
-
getAsset
-
getBalance
-
getLimit
-
getFlags
-
getExt
-
setAccountID
-
setAsset
-
setBalance
-
setLimit
-
setFlags
-
setExt
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-