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
-
public class ProtectedBindings extends org.apache.sling.api.scripting.LazyBindings implements Bindings
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.sling.api.scripting.LazyBindings
org.apache.sling.api.scripting.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 Constructor Description ProtectedBindings(Bindings wrapped, Set<String> protectedKeys)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
The clear operation is not supported.boolean
containsKey(Object key)
boolean
containsValue(Object value)
@NotNull Set<Map.Entry<String,Object>>
entrySet()
Returns a Set view of the mappings contains in this map.Object
get(Object key)
boolean
isEmpty()
@NotNull Set<String>
keySet()
Returns a Set view of the keys contained in this map.Object
put(String key, Object value)
void
putAll(Map<? extends String,? extends Object> toMerge)
Object
remove(Object key)
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
equals, getOrDefault, hashCode
-
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, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
clear
public void clear()
The clear operation is not supported.
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interfaceMap<String,Object>
- Overrides:
containsValue
in classHashMap<String,Object>
-
entrySet
@NotNull public @NotNull Set<Map.Entry<String,Object>> entrySet()
Returns a Set view of the mappings contains in this map. The Set is unmodifiable.
-
isEmpty
public boolean isEmpty()
-
keySet
@NotNull public @NotNull Set<String> keySet()
Returns a Set view of the keys contained in this map. The Set is unmodifiable.
-
size
public int size()
-
values
@NotNull public @NotNull Collection<Object> values()
Returns a Collection view of the values contained in this map. The Collection is unmodifiable.
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceBindings
- Specified by:
containsKey
in interfaceMap<String,Object>
- Overrides:
containsKey
in classorg.apache.sling.api.scripting.LazyBindings
-
-