jgnash.engine
Class Comparators.TransactionByAccount

java.lang.Object
  extended by jgnash.engine.Comparators.TransactionByAccount
All Implemented Interfaces:
java.io.Serializable, java.util.Comparator<Transaction>
Enclosing class:
Comparators

public static class Comparators.TransactionByAccount
extends java.lang.Object
implements java.util.Comparator<Transaction>, java.io.Serializable

Comparator for sorting transactions by account

See Also:
Serialized Form

Field Summary
private  Account baseAccount
           
private static long serialVersionUID
           
 
Constructor Summary
Comparators.TransactionByAccount(Account baseAccount)
           
 
Method Summary
 int compare(Transaction o1, Transaction o2)
           
private  java.lang.String getAccount(Transaction t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

baseAccount

private Account baseAccount
Constructor Detail

Comparators.TransactionByAccount

public Comparators.TransactionByAccount(Account baseAccount)
Method Detail

compare

public int compare(Transaction o1,
                   Transaction o2)
Specified by:
compare in interface java.util.Comparator<Transaction>

getAccount

private java.lang.String getAccount(Transaction t)