Class GenericTxnSearch
java.lang.Object
com.infinitekind.moneydance.model.GenericTxnSearch
- All Implemented Interfaces:
TxnSearch
public final class GenericTxnSearch extends java.lang.Object implements TxnSearch
A GenericTxnSearch class specifies a TxnSearch that matches against either specific
transaction fields or against all fields.
- Author:
- Sean Reilly
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGenericTxnSearch.Field -
Constructor Summary
Constructors Constructor Description GenericTxnSearch(GenericTxnSearch.Field field, java.lang.String value, boolean checkBothSides, CustomDateFormat dateFormat)GenericTxnSearch(GenericTxnSearch.Field field, java.lang.String value, char decimalChar, CustomDateFormat dateFormat)Construct a search for either the given value in ANY field, including amount fields, assuming that the given decimal point is used.GenericTxnSearch(GenericTxnSearch.Field field, java.lang.String value, CustomDateFormat dateFormat) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object obj)booleanmatches(Txn txn)booleanmatchesAll()
-
Constructor Details
-
GenericTxnSearch
public GenericTxnSearch(GenericTxnSearch.Field field, java.lang.String value, CustomDateFormat dateFormat) -
GenericTxnSearch
public GenericTxnSearch(GenericTxnSearch.Field field, java.lang.String value, boolean checkBothSides, CustomDateFormat dateFormat) -
GenericTxnSearch
public GenericTxnSearch(GenericTxnSearch.Field field, java.lang.String value, char decimalChar, CustomDateFormat dateFormat)Construct a search for either the given value in ANY field, including amount fields, assuming that the given decimal point is used.
-
-
Method Details
-
matches
-
matchesAll
public boolean matchesAll()- Specified by:
matchesAllin interfaceTxnSearch- Returns:
- true if the current search matches all transactions.
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-