net.sf.jabb.util.col
Class MapGetter<V>

java.lang.Object
  extended by 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

Field Summary
protected  Object[] keys
           
 
Constructor Summary
MapGetter(List<Object> keyList)
           
MapGetter(Object... keys)
           
 
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
 

Field Detail

keys

protected Object[] keys
Constructor Detail

MapGetter

public MapGetter(Object... keys)

MapGetter

public MapGetter(List<Object> keyList)
Method Detail

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.