From 202018fac417aab55f42faed7bfd251909c31183 Mon Sep 17 00:00:00 2001 From: Tom Morris Date: Sat, 18 Aug 2012 22:00:41 +0000 Subject: [PATCH] Add Javadoc. No code changes. git-svn-id: http://google-refine.googlecode.com/svn/trunk@2533 7d457c2a-affb-35e4-300a-418c747d4874 --- main/src/com/google/refine/model/ColumnModel.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main/src/com/google/refine/model/ColumnModel.java b/main/src/com/google/refine/model/ColumnModel.java index 1fa3069fb..d13b1a560 100644 --- a/main/src/com/google/refine/model/ColumnModel.java +++ b/main/src/com/google/refine/model/ColumnModel.java @@ -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);