T
- JsonDomValue
typepublic class JsonDomObjectChildren<T extends JsonDomValue<?>> extends LinkedHashMap<String,T> implements JsonDomChildren<T>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
JsonDomObjectChildren(Iterator<Map.Entry<String,V>> children,
Function<V,T> jsonDomValueMapper)
Constructor that allows adding children while applying
jsonDomValueMapper to each child's value before. |
JsonDomObjectChildren(Map<String,V> children,
Function<V,T> jsonDomValueMapper)
Constructor that allows adding children while applying
jsonDomValueMapper to each child's value before. |
JsonDomObjectChildren(Set<Map.Entry<String,V>> children,
Function<V,T> jsonDomValueMapper)
Constructor that allows adding children while applying
jsonDomValueMapper to each child's value before. |
Modifier and Type | Method and Description |
---|---|
Set<Map.Entry<String,T>> |
entrySet()
Returns a
Set view of the children. |
clear, containsValue, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
public JsonDomObjectChildren(Map<String,V> children, Function<V,T> jsonDomValueMapper)
jsonDomValueMapper
to each child's value before.V
- type of children before mapping to a
JsonDomValue
typechildren
- children to apply jsonDomValueMapper
and
addjsonDomValueMapper
- mapper from any given type to a
JsonDomValue
typepublic JsonDomObjectChildren(Set<Map.Entry<String,V>> children, Function<V,T> jsonDomValueMapper)
jsonDomValueMapper
to each child's value before.V
- type of children before mapping to a
JsonDomValue
typechildren
- children to apply jsonDomValueMapper
and
addjsonDomValueMapper
- mapper from any given type to a
JsonDomValue
typepublic JsonDomObjectChildren(Iterator<Map.Entry<String,V>> children, Function<V,T> jsonDomValueMapper)
jsonDomValueMapper
to each child's value before.V
- type of children before mapping to a
JsonDomValue
typechildren
- children to apply jsonDomValueMapper
and
addjsonDomValueMapper
- mapper from any given type to a
JsonDomValue
typepublic Set<Map.Entry<String,T>> entrySet()
Set
view of the children.entrySet
in interface JsonDomChildren<T extends JsonDomValue<?>>
entrySet
in interface Map<String,T extends JsonDomValue<?>>
entrySet
in class LinkedHashMap<String,T extends JsonDomValue<?>>
Copyright © 2024. All rights reserved.