when() — spring-boot Function Reference
Architecture documentation for the when() function in PropertyMapper.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 6587a1d3_5d52_7f4b_a460_d427c1432a77["when()"] ccbac520_6358_bad3_dfbf_ff53f16f5192["whenTrue()"] ccbac520_6358_bad3_dfbf_ff53f16f5192 -->|calls| 6587a1d3_5d52_7f4b_a460_d427c1432a77 cb6d4060_98ea_67e5_62f9_52955c8fbe2e["whenFalse()"] cb6d4060_98ea_67e5_62f9_52955c8fbe2e -->|calls| 6587a1d3_5d52_7f4b_a460_d427c1432a77 9d2c4199_8539_3d81_204f_90b3526e5d8d["whenHasText()"] 9d2c4199_8539_3d81_204f_90b3526e5d8d -->|calls| 6587a1d3_5d52_7f4b_a460_d427c1432a77 01f487e2_e3bf_737d_6c99_ded22259a8e2["whenEqualTo()"] 01f487e2_e3bf_737d_6c99_ded22259a8e2 -->|calls| 6587a1d3_5d52_7f4b_a460_d427c1432a77 84e5285c_d680_f7a5_8687_07bc52afec5a["whenInstanceOf()"] 84e5285c_d680_f7a5_8687_07bc52afec5a -->|calls| 6587a1d3_5d52_7f4b_a460_d427c1432a77 58f8821b_8d52_786f_28ce_2a4c432ba4ac["whenNot()"] 58f8821b_8d52_786f_28ce_2a4c432ba4ac -->|calls| 6587a1d3_5d52_7f4b_a460_d427c1432a77 style 6587a1d3_5d52_7f4b_a460_d427c1432a77 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/context/properties/PropertyMapper.java lines 277–280
public Source<T> when(Predicate<T> predicate) {
Assert.notNull(predicate, "'predicate' must not be null");
return new Source<>(this.supplier, this.predicate.and(predicate));
}
Domain
Subdomains
Called By
- whenEqualTo()
- whenFalse()
- whenHasText()
- whenInstanceOf()
- whenNot()
- whenTrue()
Source
Frequently Asked Questions
What does when() do?
when() is a function in the spring-boot codebase.
What calls when()?
when() is called by 6 function(s): whenEqualTo, whenFalse, whenHasText, whenInstanceOf, whenNot, whenTrue.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free