package com.ripple.core.types.known.sle; import com.ripple.core.coretypes.hash.Hash256; import com.ripple.core.coretypes.uint.UInt32; import com.ripple.core.fields.Field; import com.ripple.core.serialized.enums.LedgerEntryType; // this class has a PreviousTxnID and PreviousTxnLgrSeq abstract public class ThreadedLedgerEntry extends LedgerEntry { public ThreadedLedgerEntry(LedgerEntryType type) { super(type); } public UInt32 previousTxnLgrSeq() {return get(UInt32.PreviousTxnLgrSeq);} public Hash256 previousTxnID() {return get(Hash256.PreviousTxnID);} public void previousTxnLgrSeq(UInt32 val) {put(Field.PreviousTxnLgrSeq, val);} public void previousTxnID(Hash256 val) {put(Field.PreviousTxnID, val);} }