/** * Creates a new instance of the LedgerAddress class. * * @param ledgerSequence The sequence of the Ledger (This is different from the Entry Sequence). * @param ledgerId The Id of the Ledger that this Address corresponds to. * @param entryId The Entry Id inside the Ledger that this Address corresponds to. */ LedgerAddress(int ledgerSequence, long ledgerId, long entryId) { this(calculateAppendSequence(ledgerSequence, entryId), ledgerId); }
/** * Creates a new instance of the LedgerAddress class. * * @param metadata The LedgerMetadata for the ledger. * @param entryId The Entry Id inside the Ledger that this Address corresponds to. */ LedgerAddress(LedgerMetadata metadata, long entryId) { this(calculateAppendSequence(metadata.getSequence(), entryId), metadata.getLedgerId()); }