Example usage for org.apache.commons.lang IntHashMap put

List of usage examples for org.apache.commons.lang IntHashMap put

Introduction

In this page you can find the example usage for org.apache.commons.lang IntHashMap put.

Prototype

public Object put(int key, Object value) 

Source Link

Document

Maps the specified key to the specified value in this hashtable.

Usage

From source file:org.edc.sstone.CheckedException.java

public String getErrorMessageKey() {
    Object ret = null;/*from   w  ww . j a va  2 s . c  om*/
    IntHashMap m = new IntHashMap();
    m.put(PHONE_PROFILE_SILENT_MODE_ERROR, "audio.silent.error");
    m.put(MODULE_READ_ERROR, "module.read.error");
    m.put(MODULE_PROPERTIES_READ_ERROR, "module.properties.read.error");
    ret = m.get(code);
    return (ret != null && ret instanceof String) ? (String) ret : "application.error";
}