net.sf.jabb.util.col
Class MapGetter<V>
java.lang.Object
net.sf.jabb.util.col.MapGetter<V>
public class MapGetter<V>
- extends Object
Get value from Maps according to predefined key list.
- Author:
- James Hu
|
Method Summary |
V |
get(Map<?,V> map)
Get the first matching value in the map. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
keys
protected Object[] keys
MapGetter
public MapGetter(Object... keys)
MapGetter
public MapGetter(List<Object> keyList)
get
public V get(Map<?,V> map)
- Get the first matching value in the map.
- Parameters:
map -
- Returns:
- null if nothing found
Copyright © 2012. All Rights Reserved.