Class AccountIterator

java.lang.Object
com.infinitekind.moneydance.model.AccountIterator
All Implemented Interfaces:
java.util.Iterator<Account>

public class AccountIterator
extends java.lang.Object
implements java.util.Iterator<Account>
Iterator used to scan a set of accounts.
Author:
sreilly
  • Constructor Summary

    Constructors 
    Constructor Description
    AccountIterator​(Account topLevelAcct)  
    AccountIterator​(AccountBook book)
    Build an iterator over all accounts
    AccountIterator​(AccountBook book, Account ancestorAccount)
    Build an iterator over all accounts, or if ancestorAccount is non-null then all descendants of it.
  • Method Summary

    Modifier and Type Method Description
    boolean hasNext()  
    Account next()  
    void remove()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.Iterator

    forEachRemaining
  • Constructor Details

    • AccountIterator

      public AccountIterator​(AccountBook book, Account ancestorAccount)
      Build an iterator over all accounts, or if ancestorAccount is non-null then all descendants of it.
      Since:
      build 1188 This constructor is only available as of build 1188 (Moneydance 2015.4)
    • AccountIterator

      public AccountIterator​(AccountBook book)
      Build an iterator over all accounts
    • AccountIterator

      public AccountIterator​(Account topLevelAcct)
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface java.util.Iterator<Account>
    • next

      public Account next()
      Specified by:
      next in interface java.util.Iterator<Account>
    • remove

      public void remove() throws java.lang.UnsupportedOperationException
      Specified by:
      remove in interface java.util.Iterator<Account>
      Throws:
      java.lang.UnsupportedOperationException