edu.umd.cloud9.util
Class TopNScoredObjects<K extends Comparable<K>>

java.lang.Object
  extended by edu.umd.cloud9.util.TopNScoredObjects<K>

public class TopNScoredObjects<K extends Comparable<K>>
extends Object


Constructor Summary
TopNScoredObjects(int n)
           
 
Method Summary
 void add(K obj, float f)
           
 PairOfObjectFloat<K>[] extractAll()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopNScoredObjects

public TopNScoredObjects(int n)
Method Detail

add

public void add(K obj,
                float f)

extractAll

public PairOfObjectFloat<K>[] extractAll()