StocksMonitor 1.5.0

hirondelle.stocks.table
Class QuoteFilter

Object
  extended by QuoteFilter

public abstract class QuoteFilter
extends Object

Allows collections of Quote objects to be filtered according to a criterion defined by implementors.


Constructor Summary
QuoteFilter()
           
 
Method Summary
abstract  boolean isAcceptable(Quote aQuote)
          Defines the criteria by which aQuote is accepted or rejected by this filter.
 List<Quote> sift(Collection<Quote> aQuotes)
          Return a List which has the same iteration order as aQuotes, but which includes only those elements which satisfy isAcceptable(hirondelle.stocks.quotes.Quote).
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuoteFilter

public QuoteFilter()
Method Detail

isAcceptable

public abstract boolean isAcceptable(Quote aQuote)
Defines the criteria by which aQuote is accepted or rejected by this filter.


sift

public final List<Quote> sift(Collection<Quote> aQuotes)
Return a List which has the same iteration order as aQuotes, but which includes only those elements which satisfy isAcceptable(hirondelle.stocks.quotes.Quote).


StocksMonitor 1.5.0

Copyright Hirondelle Systems - License - Generated 2008Jul12.10.53