processValueWhen() — spring-boot Function Reference
Architecture documentation for the processValueWhen() function in JsonWriterTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD a4d3f8ce_9340_6698_41c0_7bd0a817048e["processValueWhen()"] 0d94726e_741b_9208_9d8c_ca4cd0f4cf12["of()"] a4d3f8ce_9340_6698_41c0_7bd0a817048e -->|calls| 0d94726e_741b_9208_9d8c_ca4cd0f4cf12 bb44266d_e667_891f_fde5_db7752f799e6["stringCapitalize()"] a4d3f8ce_9340_6698_41c0_7bd0a817048e -->|calls| bb44266d_e667_891f_fde5_db7752f799e6 f620c002_62d4_28c9_f35a_46baa1bba84f["when()"] a4d3f8ce_9340_6698_41c0_7bd0a817048e -->|calls| f620c002_62d4_28c9_f35a_46baa1bba84f style a4d3f8ce_9340_6698_41c0_7bd0a817048e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/json/JsonWriterTests.java lines 862–873
@Test
void processValueWhen() {
JsonWriter<Map<?, ?>> writer = JsonWriter.of((members) -> {
members.add();
Predicate<@Nullable String> startsWithB = (candidate) -> candidate != null && candidate.startsWith("b");
members.applyingValueProcessor(ValueProcessor.of(stringCapitalize()).when(startsWithB));
});
assertThat(writer.writeToString(Map.of("spring", "boot"))).isEqualTo("""
{"spring":"Boot"}""");
assertThat(writer.writeToString(Map.of("boot", "spring"))).isEqualTo("""
{"boot":"spring"}""");
}
Domain
Subdomains
Source
Frequently Asked Questions
What does processValueWhen() do?
processValueWhen() is a function in the spring-boot codebase.
What does processValueWhen() call?
processValueWhen() calls 3 function(s): of, stringCapitalize, when.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free