StocksMonitor 1.5.0

hirondelle.stocks.table
Class QuoteSorterFactory

Object
  extended by QuoteSorterFactory

public final class QuoteSorterFactory
extends Object

Translates a QuoteField into a corresponding Comparator whose primary sort is on that field.

All returned Comparator objects are synchronized with Quote.equals(java.lang.Object); thus, they may all be used with sorted collections.

There is only one use case for this class:

 Comparator quoteSorter = QuoteSorterFactory.getSorter(quoteField);


Constructor Summary
QuoteSorterFactory()
           
 
Method Summary
static Comparator<Quote> getSorter(QuoteField aField)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuoteSorterFactory

public QuoteSorterFactory()
Method Detail

getSorter

public static Comparator<Quote> getSorter(QuoteField aField)

StocksMonitor 1.5.0

Copyright Hirondelle Systems - License - Generated 2008Jul12.10.53