public static class LocationGrid.Builder extends Object
LocationGrids. Use
LocationGrid.builder(int, int) to create new builder instances.| Modifier and Type | Method and Description |
|---|---|
LocationGrid |
build()
Return a newly created
LocationGrid. |
LocationGrid.Builder |
fillColumn(int index,
LocationList locs)
Fill a row with the specified
Locations. |
LocationGrid.Builder |
fillRow(int index,
LocationList locs)
Fill a row with the specified
Locations. |
LocationGrid.Builder |
set(int row,
int column,
Location loc)
Set the Location at the specified
row and column indices. |
public LocationGrid.Builder set(int row, int column, Location loc)
row and column indices.row - index of location to setcolumn - index of location to setloc - to setBuilderpublic LocationGrid.Builder fillRow(int index, LocationList locs)
Locations.index - of row to filllocs - to fill row withBuilderpublic LocationGrid.Builder fillColumn(int index, LocationList locs)
Locations.index - of column to filllocs - to fill column withBuilderpublic LocationGrid build()
LocationGrid.