no.sesat.search.result
Class BasicWeightedSuggestion

java.lang.Object
  extended by no.sesat.search.result.BasicSuggestion
      extended by no.sesat.search.result.BasicWeightedSuggestion
All Implemented Interfaces:
Serializable, Comparable<WeightedSuggestion>, Suggestion, WeightedSuggestion

public final class BasicWeightedSuggestion
extends BasicSuggestion
implements WeightedSuggestion

Immutable

Version:
$Id: BasicWeightedSuggestion.java 7225 2009-04-09 00:32:20Z ssmiweve $
See Also:
Serialized Form

Constructor Summary
protected BasicWeightedSuggestion(String original, String suggestion, String htmlSuggestion, int weight)
          TODO comment me.
 
Method Summary
 int compareTo(WeightedSuggestion o)
           
 boolean equals(Object obj)
           
 int getWeight()
          TODO comment me.
 int hashCode()
           
static BasicWeightedSuggestion instanceOf(String original, String suggestion, String htmlSuggestion, int weight)
           
 String toString()
          TODO comment me.
 
Methods inherited from class no.sesat.search.result.BasicSuggestion
getHtmlSuggestion, getOriginal, getSuggestion, hashCode, instanceOf
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface no.sesat.search.result.Suggestion
getHtmlSuggestion, getOriginal, getSuggestion
 

Constructor Detail

BasicWeightedSuggestion

protected BasicWeightedSuggestion(String original,
                                  String suggestion,
                                  String htmlSuggestion,
                                  int weight)
TODO comment me. *

Parameters:
original -
suggestion -
htmlSuggestion -
weight -
Method Detail

instanceOf

public static BasicWeightedSuggestion instanceOf(String original,
                                                 String suggestion,
                                                 String htmlSuggestion,
                                                 int weight)
Parameters:
original -
suggestion -
htmlSuggestion -
weight -
Returns:

getWeight

public int getWeight()
TODO comment me. *

Specified by:
getWeight in interface WeightedSuggestion
Returns:

toString

public String toString()
TODO comment me.

Overrides:
toString in class Object

compareTo

public int compareTo(WeightedSuggestion o)
Specified by:
compareTo in interface Comparable<WeightedSuggestion>

equals

public boolean equals(Object obj)
Overrides:
equals in class BasicSuggestion

hashCode

public int hashCode()
Overrides:
hashCode in class BasicSuggestion


Copyright © 2005-2009 Schibsted ASA. All Rights Reserved.