Home / Function/ whenNot() — spring-boot Function Reference

whenNot() — spring-boot Function Reference

Architecture documentation for the whenNot() function in JsonWriterTests.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 1 called by 2

Entity Profile

Dependency Diagram

graph TD
  53529e0a_765f_c768_6c97_b6a34a94ab86["whenNot()"]
  9cba374a_97d6_20b8_3910_1b5dca383960["chainedPredicates()"]
  9cba374a_97d6_20b8_3910_1b5dca383960 -->|calls| 53529e0a_765f_c768_6c97_b6a34a94ab86
  8ea4c37c_1dd2_79b7_c690_a4fbac2e56d7["chainedAsAndPredicates()"]
  8ea4c37c_1dd2_79b7_c690_a4fbac2e56d7 -->|calls| 53529e0a_765f_c768_6c97_b6a34a94ab86
  0d94726e_741b_9208_9d8c_ca4cd0f4cf12["of()"]
  53529e0a_765f_c768_6c97_b6a34a94ab86 -->|calls| 0d94726e_741b_9208_9d8c_ca4cd0f4cf12
  style 53529e0a_765f_c768_6c97_b6a34a94ab86 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/json/JsonWriterTests.java lines 288–295

		@Test
		void whenNot() {
			Predicate<@Nullable List<String>> isEmpty = List::isEmpty;
			JsonWriter<List<String>> writer = JsonWriter.of((members) -> members.add().whenNot(isEmpty));
			assertThat(writer.writeToString(List.of("a"))).isEqualTo("""
					["a"]""");
			assertThat(writer.writeToString(Collections.emptyList())).isEmpty();
		}

Domain

Subdomains

Calls

Frequently Asked Questions

What does whenNot() do?
whenNot() is a function in the spring-boot codebase.
What does whenNot() call?
whenNot() calls 1 function(s): of.
What calls whenNot()?
whenNot() is called by 2 function(s): chainedAsAndPredicates, chainedPredicates.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free