Example usage for org.apache.commons.collections.map HashedMap containsKey

List of usage examples for org.apache.commons.collections.map HashedMap containsKey

Introduction

In this page you can find the example usage for org.apache.commons.collections.map HashedMap containsKey.

Prototype

public boolean containsKey(Object key) 

Source Link

Document

Checks whether the map contains the specified key.

Usage

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;
}