Uses of Class
org.springframework.boot.json.JsonWriter.Member
-
Uses of JsonWriter.Member in org.springframework.boot.json
Modifier and TypeMethodDescriptionJsonWriter.Members.add()
Add a new member with access to the instance being written.Add a new member with access to the instance being written.<V> JsonWriter.Member<V>
Add a new member with an extracted value.<V> JsonWriter.Member<V>
Add a new member with a supplied value.<V> JsonWriter.Member<V>
Add a new member with a static value.<M extends Map<K,
V>, K, V>
JsonWriter.Member<M>JsonWriter.Members.addMapEntries
(Function<T, M> extractor) Add all entries from the givenMap
to the JSON.<R> JsonWriter.Member<R>
Adapt the value by applying the givenFunction
.<V> JsonWriter.Member<V>
Add members from an extracted value.<V> JsonWriter.Member<V>
Add members from a supplied value.<V> JsonWriter.Member<V>
JsonWriter.Members.from
(V value) Add members from a static value.<E,
N, V> JsonWriter.Member<T> JsonWriter.Member.usingExtractedPairs
(BiConsumer<T, Consumer<E>> elements, Function<E, N> nameExtractor, Function<E, V> valueExtractor) Add JSON name/value pairs by extracting values from a series of elements.<E> JsonWriter.Member<T>
JsonWriter.Member.usingExtractedPairs
(BiConsumer<T, Consumer<E>> elements, JsonWriter.PairExtractor<E> extractor) Add JSON name/value pairs by extracting values from a series of elements.JsonWriter.Member.usingMembers
(Consumer<JsonWriter.Members<T>> members) Add JSON based on furtherJsonWriter.Members
configuration.<N,
V> JsonWriter.Member<T> JsonWriter.Member.usingPairs
(BiConsumer<T, BiConsumer<N, V>> pairs) Add JSON name/value pairs.Only include this member when the given predicate matches.JsonWriter.Member.whenHasLength()
Only include this member when it is notnull
and has atoString()
that is not zero length.Only include this member when the given predicate does not match.JsonWriter.Member.whenNotEmpty()
Only include this member when it is not empty (SeeObjectUtils.isEmpty(Object)
for details).JsonWriter.Member.whenNotNull()
Only include this member when its value is notnull
.JsonWriter.Member.whenNotNull
(Function<T, ?> extractor) Only include this member when an extracted value is notnull
.