Class CurrencySearch


  • public abstract class CurrencySearch
    extends java.lang.Object
    Represents a filter for matching and displaying matched currency objects
    Author:
    Sean Reilly
    • Constructor Detail

      • CurrencySearch

        public CurrencySearch()
      • CurrencySearch

        public CurrencySearch​(int currencyType)
    • Method Detail

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