- java.lang.Object
-
- org.omnifaces.util.MapWrapper<String,Object>
-
- org.omnifaces.taghandler.ImportConstants.ConstantsMap
-
- All Implemented Interfaces:
Serializable
,Map<String,Object>
- Enclosing class:
- ImportConstants
public static class ImportConstants.ConstantsMap extends MapWrapper<String,Object>
Specific map implementation which wraps the given map inCollections.unmodifiableMap(Map)
and throws anIllegalArgumentException
inget(Object)
method when the key doesn't exist at all.Since 4.6 this class is public instead of private in order to allow the EL implementation to see the new
members()
method.- Author:
- Bauke Scholtz
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConstantsMap(Map<String,Object> map, Class<?> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
Object
get(Object key)
int
hashCode()
Collection<Object>
members()
Returns Exclusively enum members in case the type is an enum.-
Methods inherited from class org.omnifaces.util.MapWrapper
clear, containsKey, containsValue, entrySet, getWrapped, isEmpty, keySet, put, putAll, remove, size, toString, values
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
members
public Collection<Object> members()
Returns Exclusively enum members in case the type is an enum.- Returns:
- Exclusively enum members in case the type is an enum.
- Throws:
IllegalStateException
- in case the type is not an enum.- Since:
- 4.6
-
equals
public boolean equals(Object object)
-
-