|
Spring Data MongoDB | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.mongodb.core.geo.GeoResults<T>
public class GeoResults<T>
Value object to capture GeoResults as well as the average distance they have.
| Constructor Summary | |
|---|---|
GeoResults(List<GeoResult<T>> results)
Creates a new GeoResults instance manually calculating the average distance from the distance values of the
given GeoResults. |
|
GeoResults(List<GeoResult<T>> results,
Distance averageDistance)
Creates a new GeoResults instance from the given GeoResults and average distance. |
|
GeoResults(List<GeoResult<T>> results,
Metric metric)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
Distance |
getAverageDistance()
Returns the average distance of all GeoResults in this list. |
List<GeoResult<T>> |
getContent()
Returns the actual |
int |
hashCode()
|
Iterator<GeoResult<T>> |
iterator()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GeoResults(List<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<GeoResult<T>> results,
Metric metric)
public GeoResults(List<GeoResult<T>> results,
Distance averageDistance)
GeoResults instance from the given GeoResults and average distance.
results - must not be null.averageDistance - | Method Detail |
|---|
public Distance getAverageDistance()
GeoResults in this list.
public Iterator<GeoResult<T>> iterator()
iterator in interface Iterable<GeoResult<T>>public List<GeoResult<T>> getContent()
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
Spring Data MongoDB | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||