com.github.bingoohuang.utils.config.impl.ConfigRow Maven / Gradle / Ivy
The newest version!
package com.github.bingoohuang.utils.config.impl;
import java.util.ArrayList;
import java.util.List;
public class ConfigRow {
private String rowKey;
private List cells = new ArrayList();
public ConfigCell getCell(String cellName) {
ConfigCell ret = null;
for (ConfigCell cell : cells) {
if (cellName.equals(cell.getCellName())) {
ret = cell;
break;
}
}
return ret;
}
public ConfigCell getCell(int index) {
return cells.get(index);
}
public String getRowKey() {
return rowKey;
}
public void setRowKey(String rowKey) {
this.rowKey = rowKey;
}
public List getCells() {
return cells;
}
public void addCell(ConfigCell cell) {
cells.add(cell);
}
public void setCells(List cells) {
this.cells = cells;
}
@Override
public String toString() {
return "ConfigRow [rowKey=" + rowKey + ", cells=" + cells + "]";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy