org.onebusaway.transit_data_federation.model
Class SearchResult<T>

java.lang.Object
  extended by org.onebusaway.transit_data_federation.model.SearchResult<T>
Type Parameters:
T - the result type

public class SearchResult<T>
extends Object

A search results captures a list of results along with the scores for each result.

Author:
bdferris

Constructor Summary
SearchResult()
           
SearchResult(List<T> results, double[] scores)
           
 
Method Summary
 T getResult(int index)
           
 List<T> getResults()
           
 double getScore(int index)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchResult

public SearchResult()

SearchResult

public SearchResult(List<T> results,
                    double[] scores)
Method Detail

size

public int size()

getResult

public T getResult(int index)

getResults

public List<T> getResults()

getScore

public double getScore(int index)


Copyright © 2012 OneBusAway. All Rights Reserved.