*
* @param columns
*/
private void columnsSanityCheck(List<IGridColumn> columns) {
for (int i = 0; i < columns.size(); ++i) {
IGridColumn column = columns.get(i);
columnSanityCheck(column);
}
for (int i = 0; i < columns.size(); ++i) {
IGridColumn column = columns.get(i);
for (int j = 0; j < columns.size(); ++j) {
if (i != j) {
IGridColumn otherColumn = columns.get(j);
if (column.getId().equals(otherColumn.getId())) {
throw new IllegalStateException("Each column must have unique id");
}
}
}
}