List < Cell > function ( ) { List < Cell > loc0 = new ArrayList < Cell > ( ) ; for ( int loc1 = 0 ; loc1 < ROWS ; loc1 ++ ) { for ( int loc2 = 0 ; loc2 < COLUMNS ; loc2 ++ ) { loc0 . add ( new Cell ( loc2 , loc1 ) ) ; } } return Collections . unmodifiableList ( loc0 ) ; }
constructs the list containing the grids cells in row-major order . concode_field_sep List<Cell> SPIRAL_ORDER concode_elem_sep int ROWS concode_elem_sep List<Cell> ROW_MAJOR_ORDER concode_elem_sep int x concode_elem_sep int y concode_elem_sep int COLUMNS concode_elem_sep int COUNT concode_field_sep int hashCode concode_elem_sep List<Cell> spiralOrder concode_elem_sep int rowMajorIndex concode_elem_sep boolean equals concode_elem_sep int x concode_elem_sep int y concode_elem_sep String toString concode_elem_sep Cell neighbor