au.com.centrumsystems.hudson.plugin.buildpipeline
Class DefaultBuildGridImpl

java.lang.Object
  extended by au.com.centrumsystems.hudson.plugin.buildpipeline.Grid<BuildForm>
      extended by au.com.centrumsystems.hudson.plugin.buildpipeline.BuildGrid
          extended by au.com.centrumsystems.hudson.plugin.buildpipeline.DefaultBuildGridImpl

public class DefaultBuildGridImpl
extends BuildGrid

BuildGrid implementation backed by a sparse array.

Author:
Kohsuke Kawaguchi

Constructor Summary
DefaultBuildGridImpl()
           
 
Method Summary
 BuildForm get(int row, int col)
          Obtains the project placed at the specific position.
 int getColumns()
          Width of the grid.
 int getRows()
          Height of the grid.
 void set(int row, int col, BuildForm p)
          Mutable, but only for the code that instantiates DefaultBuildGridImpl.
 
Methods inherited from class au.com.centrumsystems.hudson.plugin.buildpipeline.Grid
getNextAvailableRow, isEmpty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBuildGridImpl

public DefaultBuildGridImpl()
Method Detail

set

public void set(int row,
                int col,
                BuildForm p)
Mutable, but only for the code that instantiates DefaultBuildGridImpl.

Parameters:
row - position of the form
col - position of the form
p - The build to add. null to remove the value.

get

public BuildForm get(int row,
                     int col)
Description copied from class: Grid
Obtains the project placed at the specific position.

Specified by:
get in class Grid<BuildForm>
Parameters:
row - 0&lt;=row&lt;getRows()
col - 0&lt;=col&lt;getColumns()
Returns:
null if there's nothing placed in that position.

getColumns

public int getColumns()
Description copied from class: Grid
Width of the grid. Total number of columns.

Specified by:
getColumns in class Grid<BuildForm>
Returns:
positive integer

getRows

public int getRows()
Description copied from class: Grid
Height of the grid. Total number of rows.

Specified by:
getRows in class Grid<BuildForm>
Returns:
positive integer


Copyright © 2004-2014. All Rights Reserved.