public class TrustLineEntry extends java.lang.Object implements XdrElement
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;
};
| Modifier and Type | Class and Description |
|---|---|
static class |
TrustLineEntry.TrustLineEntryBuilder |
static class |
TrustLineEntry.TrustLineEntryExt
TrustLineEntryExt's original definition in the XDR file is:
|
| Constructor and Description |
|---|
TrustLineEntry() |
TrustLineEntry(AccountID accountID,
TrustLineAsset asset,
Int64 balance,
Int64 limit,
Uint32 flags,
TrustLineEntry.TrustLineEntryExt ext) |
| Modifier and Type | Method and Description |
|---|---|
static TrustLineEntry.TrustLineEntryBuilder |
builder() |
static TrustLineEntry |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static TrustLineEntry |
fromXdrBase64(java.lang.String xdr) |
static TrustLineEntry |
fromXdrByteArray(byte[] xdr) |
AccountID |
getAccountID() |
TrustLineAsset |
getAsset() |
Int64 |
getBalance() |
TrustLineEntry.TrustLineEntryExt |
getExt() |
Uint32 |
getFlags() |
Int64 |
getLimit() |
int |
hashCode() |
void |
setAccountID(AccountID accountID) |
void |
setAsset(TrustLineAsset asset) |
void |
setBalance(Int64 balance) |
void |
setExt(TrustLineEntry.TrustLineEntryExt ext) |
void |
setFlags(Uint32 flags) |
void |
setLimit(Int64 limit) |
TrustLineEntry.TrustLineEntryBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArraypublic TrustLineEntry()
public TrustLineEntry(AccountID accountID, TrustLineAsset asset, Int64 balance, Int64 limit, Uint32 flags, TrustLineEntry.TrustLineEntryExt ext)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode in interface XdrElementjava.io.IOExceptionpublic static TrustLineEntry decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOExceptionpublic static TrustLineEntry fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOExceptionpublic static TrustLineEntry fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOExceptionpublic static TrustLineEntry.TrustLineEntryBuilder builder()
public TrustLineEntry.TrustLineEntryBuilder toBuilder()
public AccountID getAccountID()
public TrustLineAsset getAsset()
public Int64 getBalance()
public Int64 getLimit()
public Uint32 getFlags()
public TrustLineEntry.TrustLineEntryExt getExt()
public void setAccountID(AccountID accountID)
public void setAsset(TrustLineAsset asset)
public void setBalance(Int64 balance)
public void setLimit(Int64 limit)
public void setFlags(Uint32 flags)
public void setExt(TrustLineEntry.TrustLineEntryExt ext)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object