processValueWhenDeeplyNestedUsesCompoundPaths() — spring-boot Function Reference
Architecture documentation for the processValueWhenDeeplyNestedUsesCompoundPaths() function in JsonWriterTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD f9dd56fc_2eb2_79e2_5b45_11b853768e4b["processValueWhenDeeplyNestedUsesCompoundPaths()"] 0d94726e_741b_9208_9d8c_ca4cd0f4cf12["of()"] f9dd56fc_2eb2_79e2_5b45_11b853768e4b -->|calls| 0d94726e_741b_9208_9d8c_ca4cd0f4cf12 84506fbe_214d_f213_ad3f_496e15af47cb["usingMembers()"] f9dd56fc_2eb2_79e2_5b45_11b853768e4b -->|calls| 84506fbe_214d_f213_ad3f_496e15af47cb e537a626_eefe_4fa4_6b81_c90a061a4f87["toString()"] f9dd56fc_2eb2_79e2_5b45_11b853768e4b -->|calls| e537a626_eefe_4fa4_6b81_c90a061a4f87 style f9dd56fc_2eb2_79e2_5b45_11b853768e4b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/json/JsonWriterTests.java lines 910–930
@Test
void processValueWhenDeeplyNestedUsesCompoundPaths() {
List<String> paths = new ArrayList<>();
JsonWriter<Couple> writer = JsonWriter.of((members) -> {
members.add("one", Couple::person1).usingMembers((personMembers) -> {
personMembers.add("first", Person::firstName);
personMembers.add("last", Person::lastName);
});
members.add("two", Couple::person2).usingMembers((personMembers) -> {
personMembers.add("first", Person::firstName);
personMembers.add("last", Person::lastName);
});
members.applyingValueProcessor((path, value) -> {
paths.add(path.toString());
return value;
});
});
Couple couple = new Couple(PERSON, new Person("Spring", "Framework", 20));
writer.writeToString(couple);
assertThat(paths).containsExactly("one", "one.first", "one.last", "two", "two.first", "two.last");
}
Domain
Subdomains
Source
Frequently Asked Questions
What does processValueWhenDeeplyNestedUsesCompoundPaths() do?
processValueWhenDeeplyNestedUsesCompoundPaths() is a function in the spring-boot codebase.
What does processValueWhenDeeplyNestedUsesCompoundPaths() call?
processValueWhenDeeplyNestedUsesCompoundPaths() calls 3 function(s): of, toString, usingMembers.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free