org.kuali.rice.krad.uif.util
Class BooleanMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<String,Boolean>
          extended by org.kuali.rice.krad.uif.util.BooleanMap
All Implemented Interfaces:
Serializable, Cloneable, Map<String,Boolean>

public class BooleanMap
extends HashMap<String,Boolean>

Map implementation takes a Set of Strings and converts to Map where the string is the map key and value is the Boolean true, convenience collection for expression language.

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
BooleanMap(Map<? extends String,? extends Boolean> m)
          Copy constructor.
BooleanMap(Set<String> keys)
          Sets an initial value of Boolean.TRUE for a given provided set of keys.
 
Method Summary
 Boolean get(Object key)
          Overrides the get method to return Boolean false if the key does not exist in the Map.
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

BooleanMap

public BooleanMap(Map<? extends String,? extends Boolean> m)
Copy constructor.

Parameters:
m - map to copy

BooleanMap

public BooleanMap(Set<String> keys)
Sets an initial value of Boolean.TRUE for a given provided set of keys.

Parameters:
keys - set of keys to map to Boolean.TRUE
Method Detail

get

public Boolean get(Object key)
Overrides the get method to return Boolean false if the key does not exist in the Map.

Specified by:
get in interface Map<String,Boolean>
Overrides:
get in class HashMap<String,Boolean>


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.