toConsumerWhenNull() — spring-boot Function Reference
Architecture documentation for the toConsumerWhenNull() function in PropertyMapperTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 6b69626c_83a5_f2b0_dc8b_4f246ac8d7ce["toConsumerWhenNull()"] 4ca680ef_3214_dd3d_58e2_5c78340e31ea["toConsumerWhenNull()"] 4ca680ef_3214_dd3d_58e2_5c78340e31ea -->|calls| 6b69626c_83a5_f2b0_dc8b_4f246ac8d7ce 4ca680ef_3214_dd3d_58e2_5c78340e31ea["toConsumerWhenNull()"] 6b69626c_83a5_f2b0_dc8b_4f246ac8d7ce -->|calls| 4ca680ef_3214_dd3d_58e2_5c78340e31ea 7fac5bad_1334_d83b_9c51_c8870181dc89["getName()"] 6b69626c_83a5_f2b0_dc8b_4f246ac8d7ce -->|calls| 7fac5bad_1334_d83b_9c51_c8870181dc89 style 6b69626c_83a5_f2b0_dc8b_4f246ac8d7ce fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/properties/PropertyMapperTests.java lines 280–286
@Test
void toConsumerWhenNull() {
ExampleDest dest = new ExampleDest();
this.map.from((String) null).always().to(dest::setName);
assertThat(dest.getName()).isNull();
assertThat(dest.setNameCalled).isTrue();
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does toConsumerWhenNull() do?
toConsumerWhenNull() is a function in the spring-boot codebase.
What does toConsumerWhenNull() call?
toConsumerWhenNull() calls 2 function(s): getName, toConsumerWhenNull.
What calls toConsumerWhenNull()?
toConsumerWhenNull() is called by 1 function(s): toConsumerWhenNull.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free