Class RasterResultParams.Builder
- java.lang.Object
-
- RasterResultParams.Builder
-
- Enclosing class:
- RasterResultParams
public static class RasterResultParams.Builder extends java.lang.Object
The RasterResultParams.Builder is used to construct new RasterResultParams instances. Instantiate a new Builder, set the required fields, and then construct the RasterResultParams by invoking the create method.RasterResultParams resultParams = new RasterResultParams.Builder() .setRenderGrid(grid) .setRasterUlLon(ullon) ... .create();
-
-
Field Summary
Fields Modifier and Type Field Description private int
depth
The depth of the chosen images.private boolean
querySuccess
True if the query was successful.private double
rasterLrLat
The bounding upper-left, lower-right longitudes and latitudes of the final image.private double
rasterLrLon
The bounding upper-left, lower-right longitudes and latitudes of the final image.private double
rasterUlLat
The bounding upper-left, lower-right longitudes and latitudes of the final image.private double
rasterUlLon
The bounding upper-left, lower-right longitudes and latitudes of the final image.private java.lang.String[][]
renderGrid
The grid of images to display.
-
Constructor Summary
Constructors Constructor Description Builder()
Creates a RasterResultParams.Builder instance that can be used to build a RasterResultParams objects with various fields pre-set.Builder(RasterResultParams rrp)
Creates a RasterResultParams.Builder instance from a RasterResultParams instance with the same values as the previously built RasterResultParams.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RasterResultParams
create()
Returns a validated RasterResultParams instance with the same values as this Builder.RasterResultParams.Builder
setDepth(int d)
Sets the value for this Builder's depth.RasterResultParams.Builder
setQuerySuccess(boolean success)
Sets the value for this Builder's querySuccess.RasterResultParams.Builder
setRasterLrLat(double lrlat)
Sets the value for this Builder's rasterLrLat.RasterResultParams.Builder
setRasterLrLon(double lrlon)
Sets the value for this Builder's rasterLrLon.RasterResultParams.Builder
setRasterUlLat(double ullat)
Sets the value for this Builder's rasterUlLat.RasterResultParams.Builder
setRasterUlLon(double ullon)
Sets the value for this Builder's rasterUlLon.RasterResultParams.Builder
setRenderGrid(java.lang.String[][] grid)
Sets the value for this Builder's renderGrid.
-
-
-
Field Detail
-
renderGrid
private java.lang.String[][] renderGrid
The grid of images to display.
-
rasterUlLon
private double rasterUlLon
The bounding upper-left, lower-right longitudes and latitudes of the final image.
-
rasterUlLat
private double rasterUlLat
The bounding upper-left, lower-right longitudes and latitudes of the final image.
-
rasterLrLon
private double rasterLrLon
The bounding upper-left, lower-right longitudes and latitudes of the final image.
-
rasterLrLat
private double rasterLrLat
The bounding upper-left, lower-right longitudes and latitudes of the final image.
-
depth
private int depth
The depth of the chosen images.
-
querySuccess
private boolean querySuccess
True if the query was successful.
-
-
Constructor Detail
-
Builder
public Builder()
Creates a RasterResultParams.Builder instance that can be used to build a RasterResultParams objects with various fields pre-set.
-
Builder
public Builder(RasterResultParams rrp)
Creates a RasterResultParams.Builder instance from a RasterResultParams instance with the same values as the previously built RasterResultParams.- Parameters:
rrp
- RasterResultParams to copy
-
-
Method Detail
-
setRenderGrid
public RasterResultParams.Builder setRenderGrid(java.lang.String[][] grid)
Sets the value for this Builder's renderGrid.- Parameters:
grid
- The computed renderGrid.- Returns:
- This Builder instance.
-
setRasterUlLon
public RasterResultParams.Builder setRasterUlLon(double ullon)
Sets the value for this Builder's rasterUlLon.- Parameters:
ullon
- The computed upper-left longitude.- Returns:
- This Builder instance.
-
setRasterUlLat
public RasterResultParams.Builder setRasterUlLat(double ullat)
Sets the value for this Builder's rasterUlLat.- Parameters:
ullat
- The computed upper-left latitude.- Returns:
- This Builder instance.
-
setRasterLrLon
public RasterResultParams.Builder setRasterLrLon(double lrlon)
Sets the value for this Builder's rasterLrLon.- Parameters:
lrlon
- The computed lower-right longitude.- Returns:
- This Builder instance.
-
setRasterLrLat
public RasterResultParams.Builder setRasterLrLat(double lrlat)
Sets the value for this Builder's rasterLrLat.- Parameters:
lrlat
- The computed lower-right latitude.- Returns:
- This Builder instance.
-
setDepth
public RasterResultParams.Builder setDepth(int d)
Sets the value for this Builder's depth.- Parameters:
d
- The computed depth of the images.- Returns:
- This Builder instance.
-
setQuerySuccess
public RasterResultParams.Builder setQuerySuccess(boolean success)
Sets the value for this Builder's querySuccess.- Parameters:
success
- Whether the query was a success or not.- Returns:
- This Builder instance.
-
create
public RasterResultParams create()
Returns a validated RasterResultParams instance with the same values as this Builder.- Returns:
- A new RasterResultParams instance with the same values as this Builder.
- Throws:
java.lang.IllegalStateException
- If any of the RasterResultParams' values are invalid.
-
-