com.moneydance.apps.md.model
Class AccountTypeSet

java.lang.Object
  extended by com.moneydance.apps.md.model.AccountTypeSet

public class AccountTypeSet
extends java.lang.Object

This class represents a set of accounts types. This is useful when querying for a set of accounts by their type. For example, when performing a cash-flow report, the report should show income, expense, and loan accounts (and possibly others).


Constructor Summary
AccountTypeSet()
           
 
Method Summary
 void addType(int newAccountType)
          Adds the given account type to the set.
 boolean includesType(Account acct)
          Returns true if the type of the given account is in the set.
 boolean includesType(int accountType)
          Returns true if the given account type is in the set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccountTypeSet

public AccountTypeSet()
Method Detail

includesType

public boolean includesType(Account acct)
Returns true if the type of the given account is in the set.


includesType

public boolean includesType(int accountType)
Returns true if the given account type is in the set.


addType

public void addType(int newAccountType)
Adds the given account type to the set.