public class GeoPage<T> extends org.springframework.data.domain.PageImpl<GeoResult<T>>
Constructor and Description |
---|
GeoPage(GeoResults<T> results)
Creates a new
GeoPage from the given GeoResults . |
GeoPage(GeoResults<T> results,
org.springframework.data.domain.Pageable pageable,
long total)
|
Modifier and Type | Method and Description |
---|---|
Distance |
getAverageDistance()
Returns the average distance of the underlying results.
|
public GeoPage(GeoResults<T> results)
GeoPage
from the given GeoResults
.content
- must not be null.public GeoPage(GeoResults<T> results, org.springframework.data.domain.Pageable pageable, long total)
results
- must not be null.pageable
- must not be null.total
- public Distance getAverageDistance()
Copyright © 2012. All Rights Reserved.