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

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

Introduction

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

Prototype

public Object get(int key) 

Source Link

Document

Returns the value to which the specified key is mapped in this map.

Usage

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

public String getErrorMessageKey() {
    Object ret = null;/*from   ww w.  j  a  v a2  s  .co m*/
    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";
}