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

addSingleItemHint() — spring-boot Function Reference

Architecture documentation for the addSingleItemHint() function in MetadataCollectorTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  f7dc4b88_77b3_243d_3288_387c4650f304["addSingleItemHint()"]
  c04718c1_4f96_61c9_8fb3_d6e3b5819110["createSimpleCollector()"]
  f7dc4b88_77b3_243d_3288_387c4650f304 -->|calls| c04718c1_4f96_61c9_8fb3_d6e3b5819110
  c8c9e7f6_e856_4711_6fe7_b1c2aeb3d239["getItems()"]
  f7dc4b88_77b3_243d_3288_387c4650f304 -->|calls| c8c9e7f6_e856_4711_6fe7_b1c2aeb3d239
  e7c58dfe_42c0_6b72_1bde_2ee9b184c277["ValueHint()"]
  f7dc4b88_77b3_243d_3288_387c4650f304 -->|calls| e7c58dfe_42c0_6b72_1bde_2ee9b184c277
  165eb563_f28e_5b1c_89b1_72c9cbf53b51["ItemHint()"]
  f7dc4b88_77b3_243d_3288_387c4650f304 -->|calls| 165eb563_f28e_5b1c_89b1_72c9cbf53b51
  3e16447d_1507_5130_db83_3555c87b4c39["withHint()"]
  f7dc4b88_77b3_243d_3288_387c4650f304 -->|calls| 3e16447d_1507_5130_db83_3555c87b4c39
  4b61c8e3_26fd_ba33_03bc_d518465e0979["withValue()"]
  f7dc4b88_77b3_243d_3288_387c4650f304 -->|calls| 4b61c8e3_26fd_ba33_03bc_d518465e0979
  48f8fec2_2e27_3a1f_0f94_d07832e9810f["add()"]
  f7dc4b88_77b3_243d_3288_387c4650f304 -->|calls| 48f8fec2_2e27_3a1f_0f94_d07832e9810f
  style f7dc4b88_77b3_243d_3288_387c4650f304 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

configuration-metadata/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/MetadataCollectorTests.java lines 104–114

	@Test
	void addSingleItemHint() {
		MetadataCollector collector = createSimpleCollector();
		collector.add(SINGLE_ITEM_METADATA.getItems().get(0));
		ValueHint firstValueHint = new ValueHint("one", "First.");
		ValueHint secondValueHint = new ValueHint("two", "Second.");
		ItemHint itemHint = new ItemHint("name", List.of(firstValueHint, secondValueHint), Collections.emptyList());
		collector.add(itemHint);
		assertThat(collector.getMetadata())
			.has(Metadata.withHint("name").withValue(0, "one", "First.").withValue(1, "two", "Second."));
	}

Domain

Subdomains

Frequently Asked Questions

What does addSingleItemHint() do?
addSingleItemHint() is a function in the spring-boot codebase.
What does addSingleItemHint() call?
addSingleItemHint() calls 7 function(s): ItemHint, ValueHint, add, createSimpleCollector, getItems, withHint, withValue.

Analyze Your Own Codebase

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

Try Supermodel Free