public class GeoResults<T> extends Object implements Iterable<GeoResult<T>>, Serializable
GeoResults as well as the average distance they have.| Constructor and Description |
|---|
GeoResults(List<? extends GeoResult<T>> results)
Creates a new
GeoResults instance manually calculating the average distance from the distance values of the
given GeoResults. |
GeoResults(List<? extends GeoResult<T>> results,
Distance averageDistance)
Creates a new
GeoResults instance from the given GeoResults and average distance. |
GeoResults(List<? extends GeoResult<T>> results,
Metric metric)
Creates a new
GeoResults instance manually calculating the average distance in the given Metric
from the distance values of the given GeoResults. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Distance |
getAverageDistance()
Returns the average distance of all
GeoResults in this list. |
List<GeoResult<T>> |
getContent()
Returns the actual content of the
GeoResults. |
int |
hashCode() |
Iterator<GeoResult<T>> |
iterator() |
String |
toString() |
public GeoResults(List<? extends GeoResult<T>> results)
GeoResults instance manually calculating the average distance from the distance values of the
given GeoResults.results - must not be null.public GeoResults(List<? extends GeoResult<T>> results, Metric metric)
GeoResults instance manually calculating the average distance in the given Metric
from the distance values of the given GeoResults.results - must not be null.metric - must not be null.public Distance getAverageDistance()
GeoResults in this list.public List<GeoResult<T>> getContent()
GeoResults.Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.