Package com.storedobject.core
Interface Ledger
- All Superinterfaces:
AutoCloseable,Iterable<LedgerEntry>,Iterator<LedgerEntry>
Representation of a set of entries in the "Transaction Ledger". Please note that this class implements both
Iterator and Iterable interfaces and thus, it is possible to iterate through the entries (instances
of LedgerEntry) using constructs such as "for" loops.
Note: Use Account.getLedger(DatePeriod) to create an instance of the Ledger.
- Author:
- Syam
-
Method Summary
Modifier and TypeMethodDescriptionThe account of this ledger.Local currency opening balance.Foreign currency opening balance.The date-period selected.default Iterator<LedgerEntry> iterator()Iterator forLedgerEntrys.default voidremove()This method exists for API conformance.Methods inherited from interface java.lang.AutoCloseable
closeMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next
-
Method Details
-
getOpeningBalance
-
getLocalCurrencyOpeningBalance
Money getLocalCurrencyOpeningBalance()Local currency opening balance.- Returns:
- Local currency balance.
-
getAccount
-
getPeriod
-
iterator
Iterator forLedgerEntrys.- Specified by:
iteratorin interfaceIterable<LedgerEntry>- Returns:
- Ledger entry iterator.
-
remove
default void remove()This method exists for API conformance. However, this operation is not supported.- Specified by:
removein interfaceIterator<LedgerEntry>
-