Class ProtectedBindings
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,Object>
org.apache.sling.api.scripting.LazyBindings
org.apache.sling.scripting.core.impl.helper.ProtectedBindings
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sling.api.scripting.LazyBindings
LazyBindings.Supplier
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
The clear operation is not supported.boolean
containsKey
(Object key) boolean
containsValue
(Object value) entrySet()
Returns a Set view of the mappings contains in this map.boolean
int
hashCode()
boolean
isEmpty()
keySet()
Returns a Set view of the keys contained in this map.void
int
size()
@NotNull Collection<Object>
values()
Returns a Collection view of the values contained in this map.Methods inherited from class org.apache.sling.api.scripting.LazyBindings
getOrDefault
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, forEach, merge, putIfAbsent, remove, replace, replace, replaceAll
Methods inherited from class java.util.AbstractMap
toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
ProtectedBindings
-
-
Method Details
-
put
- Specified by:
put
in interfaceBindings
- Specified by:
put
in interfaceMap<String,
Object> - Overrides:
put
in classLazyBindings
- Throws:
IllegalArgumentException
- if the key is protected
-
putAll
-
remove
- Specified by:
remove
in interfaceBindings
- Specified by:
remove
in interfaceMap<String,
Object> - Overrides:
remove
in classLazyBindings
- Throws:
IllegalArgumentException
- if the key is protected
-
clear
public void clear()The clear operation is not supported. -
containsValue
- Specified by:
containsValue
in interfaceMap<String,
Object> - Overrides:
containsValue
in classHashMap<String,
Object>
-
entrySet
Returns a Set view of the mappings contains in this map. The Set is unmodifiable. -
isEmpty
public boolean isEmpty() -
keySet
Returns a Set view of the keys contained in this map. The Set is unmodifiable. -
size
public int size() -
values
Returns a Collection view of the values contained in this map. The Collection is unmodifiable. -
containsKey
- Specified by:
containsKey
in interfaceBindings
- Specified by:
containsKey
in interfaceMap<String,
Object> - Overrides:
containsKey
in classLazyBindings
-
get
-
hashCode
public int hashCode() -
equals
-