Class CurrencySearch
- java.lang.Object
-
- com.infinitekind.moneydance.model.CurrencySearch
-
public abstract class CurrencySearch extends java.lang.Object
Represents a filter for matching and displaying matched currency objects- Author:
- Sean Reilly
-
-
Constructor Summary
Constructors Constructor Description CurrencySearch()
CurrencySearch(int currencyType)
CurrencySearch(CurrencyType.Type currencyType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
format(CurrencyType curr)
Returns the String representation of the given currency.boolean
matches(CurrencyType curr)
Returns true iff the given currency matches the current search or filter.void
setType(CurrencyType.Type currencyType)
-
-
-
Constructor Detail
-
CurrencySearch
public CurrencySearch()
-
CurrencySearch
public CurrencySearch(int currencyType)
-
CurrencySearch
public CurrencySearch(CurrencyType.Type currencyType)
-
-
Method Detail
-
setType
public void setType(CurrencyType.Type currencyType)
-
matches
public boolean matches(CurrencyType curr)
Returns true iff the given currency matches the current search or filter. This can be overridden by subclasses that provide more detailed filtering. The default returns true if the currency type matches the type provided in the constructor or from a call to setType(). If no currency type has been provided then this returns true for all currencies.
-
format
public java.lang.String format(CurrencyType curr)
Returns the String representation of the given currency. This defaults to printing the currency name.
-
-