no.sesat.search.query.analyser
Class PredicateScore

java.lang.Object
  extended by no.sesat.search.query.analyser.PredicateScore

public class PredicateScore
extends Object

PredicateScore provides a way to associate a Predicate with a score.

Version:
$Revision: 7225 $

Constructor Summary
PredicateScore(org.apache.commons.collections.Predicate p, int score)
          Create a new PredicateScore.
 
Method Summary
 org.apache.commons.collections.Predicate getPredicate()
          Returns the predicate.
 int getScore()
          Returns the score.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PredicateScore

public PredicateScore(org.apache.commons.collections.Predicate p,
                      int score)
Create a new PredicateScore. Associating p with score

Parameters:
p - the predicate.
score - the score.
Method Detail

getPredicate

public org.apache.commons.collections.Predicate getPredicate()
Returns the predicate.

Returns:
the predicate.

getScore

public int getScore()
Returns the score.

Returns:
the score.


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