Skip to content
Snippets Groups Projects
Commit 05cef8d2 authored by Matej Lukes's avatar Matej Lukes
Browse files

getRow and getSize added to corner table

parent 06fe847a
No related branches found
No related tags found
No related merge requests found
...@@ -119,9 +119,28 @@ public class CornerTable { ...@@ -119,9 +119,28 @@ public class CornerTable {
* replaces row of corner table at specified index * replaces row of corner table at specified index
* *
* @param index index of replaced row * @param index index of replaced row
* @param row new row * @param row new row
*/ */
public void replaceRow(int index, CornerTableRow row) { public void replaceRow(int index, CornerTableRow row) {
rows.set(index, row); rows.set(index, row);
} }
/**
* returns number of rows in corner table
*
* @return number of rows in corner table
*/
public int getSize() {
return rows.size();
}
/**
* returns row of corner table with specified index
*
* @param index index of desired row
* @return row of corner table
*/
public CornerTableRow getRow(int index) {
return rows.get(index);
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment