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

whenHasLength() — spring-boot Function Reference

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

Function java GradlePlugin AotProcessing calls 2 called by 2

Entity Profile

Dependency Diagram

graph TD
  fd52a434_11b9_fcb8_5647_91e6fcf53672["whenHasLength()"]
  88fa0ee6_46b4_a912_1163_c2094950e43f["whenHasLengthOnNonString()"]
  88fa0ee6_46b4_a912_1163_c2094950e43f -->|calls| fd52a434_11b9_fcb8_5647_91e6fcf53672
  9cba374a_97d6_20b8_3910_1b5dca383960["chainedPredicates()"]
  9cba374a_97d6_20b8_3910_1b5dca383960 -->|calls| fd52a434_11b9_fcb8_5647_91e6fcf53672
  0d94726e_741b_9208_9d8c_ca4cd0f4cf12["of()"]
  fd52a434_11b9_fcb8_5647_91e6fcf53672 -->|calls| 0d94726e_741b_9208_9d8c_ca4cd0f4cf12
  d61ef6a0_daf3_14b5_0e3c_0e18dc46fd10["quoted()"]
  fd52a434_11b9_fcb8_5647_91e6fcf53672 -->|calls| d61ef6a0_daf3_14b5_0e3c_0e18dc46fd10
  style fd52a434_11b9_fcb8_5647_91e6fcf53672 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/json/JsonWriterTests.java lines 261–267

		@Test
		void whenHasLength() {
			JsonWriter<String> writer = JsonWriter.of((members) -> members.add().whenHasLength());
			assertThat(writer.writeToString("test")).isEqualTo(quoted("test"));
			assertThat(writer.writeToString("")).isEmpty();
			assertThat(writer.writeToString(null)).isEmpty();
		}

Domain

Subdomains

Calls

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free