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 forLedgerEntry
s.default void
remove()
This method exists for API conformance.Methods inherited from interface java.lang.AutoCloseable
close
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods 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 forLedgerEntry
s.- Specified by:
iterator
in interfaceIterable<LedgerEntry>
- Returns:
- Ledger entry iterator.
-
remove
default void remove()This method exists for API conformance. However, this operation is not supported.- Specified by:
remove
in interfaceIterator<LedgerEntry>
-