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

hasSimilarGroup() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  5c11babc_83d5_d426_4dcd_bd091f26d8d0["hasSimilarGroup()"]
  6420e5bd_bc1e_efee_d2ff_d3f049ad6cd4["isOfItemType()"]
  5c11babc_83d5_d426_4dcd_bd091f26d8d0 -->|calls| 6420e5bd_bc1e_efee_d2ff_d3f049ad6cd4
  2f92313c_75ed_baa9_94c7_81e700548c9a["equals()"]
  5c11babc_83d5_d426_4dcd_bd091f26d8d0 -->|calls| 2f92313c_75ed_baa9_94c7_81e700548c9a
  c837e11c_a2cc_cf90_018d_1ecafff750c5["getType()"]
  5c11babc_83d5_d426_4dcd_bd091f26d8d0 -->|calls| c837e11c_a2cc_cf90_018d_1ecafff750c5
  e8e90934_397b_b72b_06c2_bff3d0ed5ac5["getName()"]
  5c11babc_83d5_d426_4dcd_bd091f26d8d0 -->|calls| e8e90934_397b_b72b_06c2_bff3d0ed5ac5
  style 5c11babc_83d5_d426_4dcd_bd091f26d8d0 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 84–95

	boolean hasSimilarGroup(ItemMetadata metadata) {
		if (!metadata.isOfItemType(ItemMetadata.ItemType.GROUP)) {
			throw new IllegalStateException("item " + metadata + " must be a group");
		}
		for (ItemMetadata existing : this.metadataItems) {
			if (existing.isOfItemType(ItemMetadata.ItemType.GROUP) && existing.getName().equals(metadata.getName())
					&& existing.getType().equals(metadata.getType())) {
				return true;
			}
		}
		return false;
	}

Domain

Subdomains

Frequently Asked Questions

What does hasSimilarGroup() do?
hasSimilarGroup() is a function in the spring-boot codebase.
What does hasSimilarGroup() call?
hasSimilarGroup() calls 4 function(s): equals, getName, getType, isOfItemType.

Analyze Your Own Codebase

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

Try Supermodel Free