Class CoordinateRectangle
java.lang.Object
com.github.prominence.openweathermap.api.model.CoordinateRectangle
Represents coordinate rectangle by its bottom-left and top-right coordinates.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for CoordinateRectangle class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanFormatted coordinate rectangle string.doubleReturns bottom latitude value.doubleReturns top latitude value.doubleReturns left longitude value.doubleReturns right longitude value.inthashCode()toString()static CoordinateRectanglewithValues(double longitudeLeft, double latitudeBottom, double longitudeRight, double latitudeTop) Method forCoordinateRectanglecreation with correctness check.
-
Method Details
-
withValues
public static CoordinateRectangle withValues(double longitudeLeft, double latitudeBottom, double longitudeRight, double latitudeTop) Method forCoordinateRectanglecreation with correctness check.- Parameters:
longitudeLeft- left longitudelatitudeBottom- bottom latitudelongitudeRight- right longitudelatitudeTop- tip latitude- Returns:
- coordinate rectangle object.
-
getLongitudeLeft
public double getLongitudeLeft()Returns left longitude value.- Returns:
- left longitude
-
getLatitudeBottom
public double getLatitudeBottom()Returns bottom latitude value.- Returns:
- bottom latitude
-
getLongitudeRight
public double getLongitudeRight()Returns right longitude value.- Returns:
- right longitude
-
getLatitudeTop
public double getLatitudeTop()Returns top latitude value.- Returns:
- top latitude
-
getFormattedRequestString
Formatted coordinate rectangle string.- Returns:
- formatted string
-
equals
-
hashCode
-
toString
-