public class StellarValue extends java.lang.Object implements XdrElement
struct StellarValue
{
Hash txSetHash; // transaction set to apply to previous ledger
TimePoint closeTime; // network close time
// upgrades to apply to the previous ledger (usually empty)
// this is a vector of encoded 'LedgerUpgrade' so that nodes can drop
// unknown steps during consensus if needed.
// see notes below on 'LedgerUpgrade' for more detail
// max size is dictated by number of upgrade types (+ room for future)
UpgradeType upgrades<6>;
// reserved for future use
union switch (StellarValueType v)
{
case STELLAR_VALUE_BASIC:
void;
case STELLAR_VALUE_SIGNED:
LedgerCloseValueSignature lcValueSignature;
}
ext;
};
| Modifier and Type | Class and Description |
|---|---|
static class |
StellarValue.StellarValueBuilder |
static class |
StellarValue.StellarValueExt
StellarValueExt's original definition in the XDR file is:
|
| Constructor and Description |
|---|
StellarValue() |
StellarValue(Hash txSetHash,
TimePoint closeTime,
UpgradeType[] upgrades,
StellarValue.StellarValueExt ext) |
| Modifier and Type | Method and Description |
|---|---|
static StellarValue.StellarValueBuilder |
builder() |
static StellarValue |
decode(XdrDataInputStream stream) |
static StellarValue |
decode(XdrDataInputStream stream,
int maxDepth) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static StellarValue |
fromXdrBase64(java.lang.String xdr) |
static StellarValue |
fromXdrByteArray(byte[] xdr) |
TimePoint |
getCloseTime() |
StellarValue.StellarValueExt |
getExt() |
Hash |
getTxSetHash() |
UpgradeType[] |
getUpgrades() |
int |
hashCode() |
void |
setCloseTime(TimePoint closeTime) |
void |
setExt(StellarValue.StellarValueExt ext) |
void |
setTxSetHash(Hash txSetHash) |
void |
setUpgrades(UpgradeType[] upgrades) |
StellarValue.StellarValueBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArraypublic StellarValue()
public StellarValue(Hash txSetHash, TimePoint closeTime, UpgradeType[] upgrades, StellarValue.StellarValueExt ext)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode in interface XdrElementjava.io.IOExceptionpublic static StellarValue decode(XdrDataInputStream stream, int maxDepth) throws java.io.IOException
java.io.IOExceptionpublic static StellarValue decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOExceptionpublic static StellarValue fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOExceptionpublic static StellarValue fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOExceptionpublic static StellarValue.StellarValueBuilder builder()
public StellarValue.StellarValueBuilder toBuilder()
public Hash getTxSetHash()
public TimePoint getCloseTime()
public UpgradeType[] getUpgrades()
public StellarValue.StellarValueExt getExt()
public void setTxSetHash(Hash txSetHash)
public void setCloseTime(TimePoint closeTime)
public void setUpgrades(UpgradeType[] upgrades)
public void setExt(StellarValue.StellarValueExt 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