Venice 0.751beta

nz.org.venice.portfolio
Class AbstractAccount

java.lang.Object
  extended bynz.org.venice.portfolio.AbstractAccount
All Implemented Interfaces:
Account, java.lang.Comparable
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 nz.org.venice.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 nz.org.venice.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.751beta