public final class Bounds extends Object implements Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Latitude |
getMaxLatitude()
Return the maximum latitude.
|
Longitude |
getMaxLongitude()
Return the maximum longitude
|
Latitude |
getMinLatitude()
Return the minimum latitude.
|
Longitude |
getMinLongitude()
Return the minimum longitude.
|
int |
hashCode() |
static Bounds |
of(double minLatitudeDegree,
double minLongitudeDegree,
double maxLatitudeDegree,
double maxLongitudeDegree)
Create a new
Bounds object with the given extent. |
static Bounds |
of(Latitude minLatitude,
Longitude minLongitude,
Latitude maxLatitude,
Longitude maxLongitude)
Create a new
Bounds object with the given extent. |
String |
toString() |
public Latitude getMinLatitude()
public Longitude getMinLongitude()
public Latitude getMaxLatitude()
public Longitude getMaxLongitude()
public static Bounds of(Latitude minLatitude, Longitude minLongitude, Latitude maxLatitude, Longitude maxLongitude)
Bounds
object with the given extent.minLatitude
- the minimum latitudeminLongitude
- the minimum longitudemaxLatitude
- the maximum latitudemaxLongitude
- the maximum longitudeBounds
object with the given extentNullPointerException
- if one of the arguments is null
public static Bounds of(double minLatitudeDegree, double minLongitudeDegree, double maxLatitudeDegree, double maxLongitudeDegree)
Bounds
object with the given extent.minLatitudeDegree
- the minimum latitudeminLongitudeDegree
- the minimum longitudemaxLatitudeDegree
- the maximum latitudemaxLongitudeDegree
- the maximum longitudeBounds
object with the given extentIllegalArgumentException
- if the latitude values are not within
the range of [-90..90]
IllegalArgumentException
- if the longitudes value are not within
the range of [-180..180]
© 2016-2017 Franz Wilhelmstötter (2017-02-22 21:53)