|
Spring Data Document | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.mongodb.core.geo.GeoResults<T>
public class GeoResults<T>
Value object to capture GeoResult
s 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 GeoResult s. |
|
GeoResults(List<GeoResult<T>> results,
Distance averageDistance)
Creates a new GeoResults instance from the given GeoResult s and average distance. |
|
GeoResults(List<GeoResult<T>> results,
Metric metric)
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
Distance |
getAverageDistance()
Returns the average distance of all GeoResult s 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 GeoResult
s.
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 GeoResult
s and average distance.
results
- must not be null.averageDistance
- Method Detail |
---|
public Distance getAverageDistance()
GeoResult
s 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 Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
Spring Data Document | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |