Package org.stellar.sdk.xdr
Class StellarValue
java.lang.Object
org.stellar.sdk.xdr.StellarValue
- All Implemented Interfaces:
XdrElement
StellarValue's original definition in the XDR file is:
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;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classStellarValueExt's original definition in the XDR file is: -
Constructor Summary
ConstructorsConstructorDescriptionStellarValue(Hash txSetHash, TimePoint closeTime, UpgradeType[] upgrades, StellarValue.StellarValueExt ext) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static StellarValuedecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic StellarValuefromXdrBase64(String xdr) static StellarValuefromXdrByteArray(byte[] xdr) getExt()inthashCode()voidsetCloseTime(TimePoint closeTime) voidvoidsetTxSetHash(Hash txSetHash) voidsetUpgrades(UpgradeType[] upgrades) toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
StellarValue
public StellarValue() -
StellarValue
public StellarValue(Hash txSetHash, TimePoint closeTime, UpgradeType[] upgrades, StellarValue.StellarValueExt ext)
-
-
Method Details
-
encode
- Specified by:
encodein interfaceXdrElement- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getTxSetHash
-
getCloseTime
-
getUpgrades
-
getExt
-
setTxSetHash
-
setCloseTime
-
setUpgrades
-
setExt
-
equals
-
hashCode
public int hashCode() -
toString
-