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

    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)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • 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.