Spring Data MongoDB - Core

org.springframework.data.mongodb.core.geo
Class GeoResults<T>

java.lang.Object
  extended by org.springframework.data.geo.GeoResults<T>
      extended by org.springframework.data.mongodb.core.geo.GeoResults<T>
All Implemented Interfaces:
Serializable, Iterable<org.springframework.data.geo.GeoResult<T>>

Deprecated. As of release 1.5, replaced by GeoResults. This class is scheduled to be removed in the next major release.

@Deprecated
public class GeoResults<T>
extends org.springframework.data.geo.GeoResults<T>

Value object to capture GeoResults as well as the average distance they have.

Author:
Oliver Gierke, Thomas Darimont
See Also:
Serialized Form

Constructor Summary
GeoResults(List<? extends org.springframework.data.geo.GeoResult<T>> results)
          Deprecated. Creates a new GeoResults instance manually calculating the average distance from the distance values of the given GeoResults.
GeoResults(List<? extends org.springframework.data.geo.GeoResult<T>> results, org.springframework.data.geo.Distance averageDistance)
          Deprecated. Creates a new GeoResults instance from the given GeoResults and average distance.
GeoResults(List<? extends org.springframework.data.geo.GeoResult<T>> results, org.springframework.data.geo.Metric metric)
          Deprecated.  
 
Method Summary
 
Methods inherited from class org.springframework.data.geo.GeoResults
equals, getAverageDistance, getContent, hashCode, iterator, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GeoResults

public GeoResults(List<? extends org.springframework.data.geo.GeoResult<T>> results)
Deprecated. 
Creates a new GeoResults instance manually calculating the average distance from the distance values of the given GeoResults.

Parameters:
results - must not be null.

GeoResults

public GeoResults(List<? extends org.springframework.data.geo.GeoResult<T>> results,
                  org.springframework.data.geo.Metric metric)
Deprecated. 

GeoResults

public GeoResults(List<? extends org.springframework.data.geo.GeoResult<T>> results,
                  org.springframework.data.geo.Distance averageDistance)
Deprecated. 
Creates a new GeoResults instance from the given GeoResults and average distance.

Parameters:
results - must not be null.
averageDistance -

Spring Data MongoDB - Core

Copyright © 2011-2014-2014 Pivotal Software, Inc.. All Rights Reserved.