|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.appengine.api.search.checkers.GeoPointChecker
public class GeoPointChecker
Provides checks for GeoPoint.
| Field Summary | |
|---|---|
static double |
MAXIMUM_NEGATIVE_LATITUDE
The maximum negative degrees for latitude. |
static double |
MAXIMUM_NEGATIVE_LONGITUDE
The maximum negative degrees for longitude. |
static double |
MAXIMUM_POSITIVE_LATITUDE
The maximum positive degrees for latitude. |
static double |
MAXIMUM_POSITIVE_LONGITUDE
The maximum positive degrees for longitude. |
| Constructor Summary | |
|---|---|
GeoPointChecker()
|
|
| Method Summary | |
|---|---|
static double |
checkLatitude(double latitude)
Checks whether a GoePoint latitude is valid. |
static double |
checkLongitude(double longitude)
Checks whether a GoePoint longitude is valid. |
static DocumentPb.FieldValue.Geo |
checkValid(DocumentPb.FieldValue.Geo geoPb)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final double MAXIMUM_NEGATIVE_LATITUDE
public static final double MAXIMUM_POSITIVE_LATITUDE
public static final double MAXIMUM_NEGATIVE_LONGITUDE
public static final double MAXIMUM_POSITIVE_LONGITUDE
| Constructor Detail |
|---|
public GeoPointChecker()
| Method Detail |
|---|
public static double checkLatitude(double latitude)
GoePoint latitude is valid. The value must be between
-90.0 and 90.0 degrees.
latitude - the latitude to check
java.lang.IllegalArgumentException - if the latitude is out of rangepublic static double checkLongitude(double longitude)
GoePoint longitude is valid. The value must be between
-180.0 and 180.0 degrees.
longitude - the longitude to check
java.lang.IllegalArgumentException - if the longitude is out of rangepublic static DocumentPb.FieldValue.Geo checkValid(DocumentPb.FieldValue.Geo geoPb)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||