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 class
GenericTxnSearch.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 boolean
equals(java.lang.Object obj)
boolean
matches(Txn txn)
boolean
matchesAll()
-
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:
matchesAll
in interfaceTxnSearch
- Returns:
- true if the current search matches all transactions.
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
-