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

addIfAbsent() — spring-boot Function Reference

Architecture documentation for the addIfAbsent() function in MetadataCollector.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  fc4b0a76_2e70_7593_d002_257a4b8e6852["addIfAbsent()"]
  5817996d_fe5a_f866_e63e_a3f4b1b7eb0f["find()"]
  fc4b0a76_2e70_7593_d002_257a4b8e6852 -->|calls| 5817996d_fe5a_f866_e63e_a3f4b1b7eb0f
  8c75ce0b_ef0c_66b2_c6b0_1bb32e52254c["add()"]
  fc4b0a76_2e70_7593_d002_257a4b8e6852 -->|calls| 8c75ce0b_ef0c_66b2_c6b0_1bb32e52254c
  e8e90934_397b_b72b_06c2_bff3d0ed5ac5["getName()"]
  fc4b0a76_2e70_7593_d002_257a4b8e6852 -->|calls| e8e90934_397b_b72b_06c2_bff3d0ed5ac5
  style fc4b0a76_2e70_7593_d002_257a4b8e6852 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

configuration-metadata/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/MetadataCollector.java lines 71–78

	boolean addIfAbsent(ItemMetadata metadata) {
		ItemMetadata existing = find(metadata.getName());
		if (existing != null) {
			return false;
		}
		add(metadata);
		return true;
	}

Domain

Subdomains

Frequently Asked Questions

What does addIfAbsent() do?
addIfAbsent() is a function in the spring-boot codebase.
What does addIfAbsent() call?
addIfAbsent() calls 3 function(s): add, find, getName.

Analyze Your Own Codebase

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

Try Supermodel Free