|
Spring Data MongoDB | |||||||||
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.GeoResult<T>
public class GeoResult<T>
Calue object capturing some arbitrary object plus a distance.
Constructor Summary | |
---|---|
GeoResult(T content,
Distance distance)
Creates a new GeoResult for the given content and distance. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
T |
getContent()
Returns the actual content object. |
Distance |
getDistance()
Returns the distance the actual content object has from the origin. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GeoResult(T content, Distance distance)
GeoResult
for the given content and distance.
content
- must not be null.distance
- must not be null.Method Detail |
---|
public T getContent()
public Distance getDistance()
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 MongoDB | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |