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

getFirstNonNull() — spring-boot Function Reference

Architecture documentation for the getFirstNonNull() function in ChangelogWriter.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  48f73d9e_c65c_e830_c652_0f5a7f3dbc4b["getFirstNonNull()"]
  50ca2dcc_c6f7_59d2_7bde_3b3ad40d30f2["getRemoved()"]
  50ca2dcc_c6f7_59d2_7bde_3b3ad40d30f2 -->|calls| 48f73d9e_c65c_e830_c652_0f5a7f3dbc4b
  6973a543_1d6b_f8b9_feb1_e3c4a80cc2d4["writeRemoved()"]
  6973a543_1d6b_f8b9_feb1_e3c4a80cc2d4 -->|calls| 48f73d9e_c65c_e830_c652_0f5a7f3dbc4b
  style 48f73d9e_c65c_e830_c652_0f5a7f3dbc4b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

configuration-metadata/spring-boot-configuration-metadata-changelog-generator/src/main/java/org/springframework/boot/configurationmetadata/changelog/ChangelogWriter.java lines 147–155

	@SafeVarargs
	@SuppressWarnings("varargs")
	private <T, P> P getFirstNonNull(T t, Function<T, P>... extractors) {
		return Stream.of(extractors)
			.map((extractor) -> extractor.apply(t))
			.filter(Objects::nonNull)
			.findFirst()
			.orElse(null);
	}

Domain

Subdomains

Frequently Asked Questions

What does getFirstNonNull() do?
getFirstNonNull() is a function in the spring-boot codebase.
What calls getFirstNonNull()?
getFirstNonNull() is called by 2 function(s): getRemoved, writeRemoved.

Analyze Your Own Codebase

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

Try Supermodel Free