mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-30 22:13:21 +01:00
39 lines
689 B
Java
39 lines
689 B
Java
package com.Acrobot.Breeze.Database;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
/**
|
|
* @author Acrobot
|
|
*/
|
|
public class RowSet {
|
|
private List<Row> rowList = new ArrayList<Row>();
|
|
|
|
/**
|
|
* Adds a row to the set
|
|
*
|
|
* @param row Row to add
|
|
*/
|
|
public void add(Row row) {
|
|
rowList.add(row);
|
|
}
|
|
|
|
/**
|
|
* Retrieves a row from its index
|
|
*
|
|
* @param index Row's index
|
|
* @return Row
|
|
*/
|
|
public Row get(int index) {
|
|
return rowList.get(index);
|
|
}
|
|
|
|
/**
|
|
* Returns the number of rows inside this RowSet
|
|
*
|
|
* @return row number
|
|
*/
|
|
public int size() {
|
|
return rowList.size();
|
|
}
|
|
} |