Add Javadoc. No code changes.

git-svn-id: http://google-refine.googlecode.com/svn/trunk@2533 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
Tom Morris 2012-08-18 22:00:41 +00:00
parent 60c3a31242
commit 202018fac4

View File

@ -143,6 +143,12 @@ public class ColumnModel implements Jsonizable {
return _nameToColumn.get(name);
}
/**
* Return the index of the column with the given name.
*
* @param name column name to look up
* @return index of column with given name or -1 if not found.
*/
synchronized public int getColumnIndexByName(String name) {
for (int i = 0; i < _columnNames.size(); i++) {
String s = _columnNames.get(i);