Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.codehaus.activemq.util
Class MapHelper

    java.lang.Object
      org.codehaus.activemq.util.MapHelper

public class MapHelper
extends Object

A bunch of utility methods for working with maps

Version:
  $Revision: 1.1 $

Constructor Summary
`MapHelper()`

Method Summary
`static int` | `getInt(Map map, String key, int defaultValue)` Extracts the value from the map and coerces to an int value or returns a default value if one could not be found or coerced
`static String` | `getString(Map map, String key)` Extracts the value from the map and coerces to a String

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### MapHelper

    public MapHelper()

Method Detail

### getString

    public static String getString(Map map,
                                   String key)

  Extracts the value from the map and coerces to a String

### getInt

    public static int getInt(Map map,
                             String key,
                             int defaultValue)

  Extracts the value from the map and coerces to an int value or returns a default value if one could not be found or coerced

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004 Protique, Ltd.. All Rights Reserved.