BEA Systems, Inc.

theory.smart.ebusiness.shoppingadvisor
Class SuggestionScoreComparator

java.lang.Object
  |
  +--theory.smart.ebusiness.shoppingadvisor.SuggestionScoreComparator

public class SuggestionScoreComparator
extends java.lang.Object
implements com.sun.java.util.collections.Comparator

Compares two Suggestion by obtaining their scores

See Also:
Suggestion

Method Summary
 int compare(java.lang.Object arg1, java.lang.Object arg2)
          Compares two Suggestion objects by score
static SuggestionScoreComparator getInstance()
          A caching mechanism to improve the performance while instantiating SuggestionItemComparators
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

compare

public int compare(java.lang.Object arg1,
                   java.lang.Object arg2)
Compares two Suggestion objects by score
Specified by:
compare in interface com.sun.java.util.collections.Comparator

getInstance

public static SuggestionScoreComparator getInstance()
A caching mechanism to improve the performance while instantiating SuggestionItemComparators
Returns:
a new instance if no instance exists or an existing instance

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved