|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.marringtons.util.Maps
Maps is a helper class of static methods for working on and with maps (name/value pairs) and sets - primarily to allow convenient static programatic loading.
| Method Summary | |
static Map |
load(Map map,
Object[] with)
Load a map from a static array. |
static Map |
load(Object[] with)
Load a HashMap from a static array. |
static Map |
loadSet(Map map,
Object[] with)
Load a map as a set from a static array. |
static Map |
loadSet(Object[] with)
Load a map as a set from a static array. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static Map load(Object[] with)
Map map = Maps.load( new Object[]
{
"keyOne", "valueOne",
"key2", value2Object,
});
with - Array of key/value object pairs to load with
public static Map load(Map map,
Object[] with)
Map map = Maps.load( new HashMap(), new Object[]
{
"keyOne", "valueOne",
"key2", value2Object,
});
map - to loadwith - Array of key/value object pairs to load with
public static Map loadSet(Object[] with)
Map map = Maps.loadSet( new Object[]
{ "keyOne", "key2" });
with - Array of keys to load with
public static Map loadSet(Map map,
Object[] with)
Map map = Maps.loadSet( new HashMap(), new Object[]
{ "keyOne", "key2" });
map - to loadwith - Array of keys to load with
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||