Package com.composum.platform.htl.impl
Class OuterBindingsBindingsValueProvider.BindingsWrapper
- java.lang.Object
-
- com.composum.platform.htl.impl.OuterBindingsBindingsValueProvider.BindingsWrapper
-
-
Constructor Summary
Constructors Constructor Description BindingsWrapper(Bindings bindings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Object
compute(String key, BiFunction<? super String,? super Object,?> remappingFunction)
Object
computeIfAbsent(String key, Function<? super String,?> mappingFunction)
Object
computeIfPresent(String key, BiFunction<? super String,? super Object,?> remappingFunction)
boolean
containsKey(Object key)
boolean
containsValue(Object value)
@NotNull Set<Map.Entry<String,Object>>
entrySet()
boolean
equals(Object o)
void
forEach(BiConsumer<? super String,? super Object> action)
Object
get(Object key)
Object
getOrDefault(Object key, Object defaultValue)
int
hashCode()
This is the workaround for https://issues.apache.org/jira/browse/SLING-9312 : the hashcode of the actual binding values is calculated if we don't break this here.boolean
isEmpty()
@NotNull Set<String>
keySet()
Object
merge(String key, Object value, BiFunction<? super Object,? super Object,?> remappingFunction)
Object
put(String name, Object value)
void
putAll(Map<? extends String,?> toMerge)
@Nullable Object
putIfAbsent(String key, Object value)
Object
remove(Object key)
boolean
remove(Object key, Object value)
@Nullable Object
replace(String key, Object value)
boolean
replace(String key, Object oldValue, Object newValue)
void
replaceAll(BiFunction<? super String,? super Object,?> function)
int
size()
@NotNull Collection<Object>
values()
-
-
-
Field Detail
-
bindings
protected final Bindings bindings
-
-
Constructor Detail
-
BindingsWrapper
public BindingsWrapper(Bindings bindings)
-
-
Method Detail
-
hashCode
public int hashCode()
This is the workaround for https://issues.apache.org/jira/browse/SLING-9312 : the hashcode of the actual binding values is calculated if we don't break this here. This is strictly wrong, but is only accidentially used in the Sling implementation.
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceBindings
- Specified by:
containsKey
in interfaceMap<String,Object>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interfaceMap<String,Object>
-
values
@NotNull public @NotNull Collection<Object> values()
-
equals
public boolean equals(Object o)
-
getOrDefault
public Object getOrDefault(Object key, Object defaultValue)
- Specified by:
getOrDefault
in interfaceMap<String,Object>
-
forEach
public void forEach(BiConsumer<? super String,? super Object> action)
-
replaceAll
public void replaceAll(BiFunction<? super String,? super Object,?> function)
- Specified by:
replaceAll
in interfaceMap<String,Object>
-
putIfAbsent
@Nullable public @Nullable Object putIfAbsent(String key, Object value)
- Specified by:
putIfAbsent
in interfaceMap<String,Object>
-
computeIfAbsent
public Object computeIfAbsent(String key, Function<? super String,?> mappingFunction)
- Specified by:
computeIfAbsent
in interfaceMap<String,Object>
-
computeIfPresent
public Object computeIfPresent(String key, BiFunction<? super String,? super Object,?> remappingFunction)
- Specified by:
computeIfPresent
in interfaceMap<String,Object>
-
compute
public Object compute(String key, BiFunction<? super String,? super Object,?> remappingFunction)
-
-