List of usage examples for org.apache.commons.collections.map HashedMap containsKey
public boolean containsKey(Object key)
From source file:com.userweave.csv.AbstractModuleCsvConverter.java
@SuppressWarnings({ "rawtypes", "unchecked" })
protected List<AbstractCsvCell> getRowForSurveyExecution(HashedMap map, Object result) {
List<AbstractCsvCell> row;
// is there already a row?
if (map.containsKey(result)) {
row = (List<AbstractCsvCell>) map.get(result);
} else {/*from www. j ava 2 s . co m*/
row = new LinkedList<AbstractCsvCell>();
map.put(result, row);
}
return row;
}