Class LedgerWindow

java.lang.Object
com.storedobject.core.LedgerWindow

public class LedgerWindow extends Object
Representation of a "window" of entries (instances of LedgerEntry) of the "Transaction Ledger". A List must be provided to keep the entries and this class will maintain that list by adding/removing entries to/from it when the "window" is moved forward/backward. When the instance is initialized with an Account, it will automatically load entries corresponding to the latest transactions.

Note: Please note that this class doesn't support generic ledger entries of external systems unless you override methods: getLedger(Date, Date), getMaxDate(Date), getMinDate(Date). However, there is a provision to append additional entries (could be un-posted ones). Override the getUnposted() method for returning the unposted entries. All the entries in the unposted entry list must have the same date, and it will be automatically fixed as the upper date boundary.

Author:
Syam