|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hyperic.util.MapUtil
public class MapUtil
Method Summary | |
---|---|
static java.lang.Object |
getOrCreate(java.util.Map m,
java.lang.Object key,
java.lang.Class toCreate)
Get a value from a map, creating a new instance of a class and inserting it as the default value if it's not found. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.Object getOrCreate(java.util.Map m, java.lang.Object key, java.lang.Class toCreate)
m
- Map to get value fromkey
- Key into maptoCreate
- Class to instantiate and insert into 'm' if the key
doesn't exist in the map.
public static void main(java.lang.String[] args)
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |