Class CoordinateRectangle.Builder
java.lang.Object
com.github.prominence.openweathermap.api.model.CoordinateRectangle.Builder
- Enclosing class:
CoordinateRectangle
Builder for CoordinateRectangle class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()BuildsCoordinateRectangleobject with correctness check.setLatitudeBottom(double latitudeBottom) Sets bottom latitude with correctness check.setLatitudeTop(double latitudeTop) Sets top latitude with correctness check.setLongitudeLeft(double longitudeLeft) Sets left longitude with correctness check.setLongitudeRight(double longitudeRight) Sets right longitude with correctness check.
-
Constructor Details
-
Builder
public Builder()Creates Builder object.
-
-
Method Details
-
setLongitudeLeft
Sets left longitude with correctness check.- Parameters:
longitudeLeft- left longitude- Returns:
- builder object
-
setLatitudeBottom
Sets bottom latitude with correctness check.- Parameters:
latitudeBottom- bottom latitude- Returns:
- builder object
-
setLongitudeRight
Sets right longitude with correctness check.- Parameters:
longitudeRight- right longitude- Returns:
- builder object
-
setLatitudeTop
Sets top latitude with correctness check.- Parameters:
latitudeTop- top latitude- Returns:
- builder object
-
build
BuildsCoordinateRectangleobject with correctness check.- Returns:
CoordinateRectanglebuilt object.
-