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 voidclear()Objectcompute(String key, BiFunction<? super String,? super Object,?> remappingFunction)ObjectcomputeIfAbsent(String key, Function<? super String,?> mappingFunction)ObjectcomputeIfPresent(String key, BiFunction<? super String,? super Object,?> remappingFunction)booleancontainsKey(Object key)booleancontainsValue(Object value)@NotNull Set<Map.Entry<String,Object>>entrySet()booleanequals(Object o)voidforEach(BiConsumer<? super String,? super Object> action)Objectget(Object key)ObjectgetOrDefault(Object key, Object defaultValue)inthashCode()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.booleanisEmpty()@NotNull Set<String>keySet()Objectmerge(String key, Object value, BiFunction<? super Object,? super Object,?> remappingFunction)Objectput(String name, Object value)voidputAll(Map<? extends String,?> toMerge)@Nullable ObjectputIfAbsent(String key, Object value)Objectremove(Object key)booleanremove(Object key, Object value)@Nullable Objectreplace(String key, Object value)booleanreplace(String key, Object oldValue, Object newValue)voidreplaceAll(BiFunction<? super String,? super Object,?> function)intsize()@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:
containsKeyin interfaceBindings- Specified by:
containsKeyin interfaceMap<String,Object>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein 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:
getOrDefaultin 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:
replaceAllin interfaceMap<String,Object>
-
putIfAbsent
@Nullable public @Nullable Object putIfAbsent(String key, Object value)
- Specified by:
putIfAbsentin interfaceMap<String,Object>
-
computeIfAbsent
public Object computeIfAbsent(String key, Function<? super String,?> mappingFunction)
- Specified by:
computeIfAbsentin interfaceMap<String,Object>
-
computeIfPresent
public Object computeIfPresent(String key, BiFunction<? super String,? super Object,?> remappingFunction)
- Specified by:
computeIfPresentin interfaceMap<String,Object>
-
compute
public Object compute(String key, BiFunction<? super String,? super Object,?> remappingFunction)
-
-