Venice 0.7beta

org.mov.portfolio
Class AbstractAccount

java.lang.Object
  extended by org.mov.portfolio.AbstractAccount
All Implemented Interfaces:
java.lang.Comparable, Account
Direct Known Subclasses:
CashAccount, ShareAccount

public abstract class AbstractAccount
extends java.lang.Object
implements Account, java.lang.Comparable

Base class for all accounts.

Author:
Andrew Leppard

Field Summary
 
Fields inherited from interface org.mov.portfolio.Account
CASH_ACCOUNT, SHARE_ACCOUNT
 
Constructor Summary
AbstractAccount()
          Create a new account.
 
Method Summary
 int compareTo(java.lang.Object object)
          Compare this account to another account and sort by name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.mov.portfolio.Account
getCurrency, getName, getType, getValue, getValue, removeAllTransactions, transaction
 

Constructor Detail

AbstractAccount

public AbstractAccount()
Create a new account.

Method Detail

compareTo

public int compareTo(java.lang.Object object)
Compare this account to another account and sort by name.

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
object - other account
Returns:
a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Venice 0.7beta