public class BooleanMap extends HashMap<String,Boolean>
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.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
Boolean |
get(Object key)
Overrides the get method to return Boolean false if the key does not
exist in the Map.
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString
public BooleanMap(Map<? extends String,? extends Boolean> m)
m
- map to copypublic BooleanMap(Set<String> keys)
Boolean.TRUE
for a given provided set of keys.keys
- set of keys to map to Boolean.TRUE
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.