whenWhenPredicateMatches() — spring-boot Function Reference
Architecture documentation for the whenWhenPredicateMatches() function in JsonWriterTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD de75da99_e8eb_8a9c_178a_a7e34c7c52cb["whenWhenPredicateMatches()"] 0d94726e_741b_9208_9d8c_ca4cd0f4cf12["of()"] de75da99_e8eb_8a9c_178a_a7e34c7c52cb -->|calls| 0d94726e_741b_9208_9d8c_ca4cd0f4cf12 ba4a56ce_ecdd_4428_4341_85898cb4e693["stringToUppercase()"] de75da99_e8eb_8a9c_178a_a7e34c7c52cb -->|calls| ba4a56ce_ecdd_4428_4341_85898cb4e693 f620c002_62d4_28c9_f35a_46baa1bba84f["when()"] de75da99_e8eb_8a9c_178a_a7e34c7c52cb -->|calls| f620c002_62d4_28c9_f35a_46baa1bba84f style de75da99_e8eb_8a9c_178a_a7e34c7c52cb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/json/JsonWriterTests.java lines 778–783
@Test
void whenWhenPredicateMatches() {
Predicate<@Nullable String> equals = "test"::equals;
ValueProcessor<String> processor = ValueProcessor.of(stringToUppercase()).when(equals);
assertThat(processor.processValue(MemberPath.ROOT, "test")).isEqualTo("TEST");
}
Domain
Subdomains
Source
Frequently Asked Questions
What does whenWhenPredicateMatches() do?
whenWhenPredicateMatches() is a function in the spring-boot codebase.
What does whenWhenPredicateMatches() call?
whenWhenPredicateMatches() calls 3 function(s): of, stringToUppercase, when.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free