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

orderByName() — spring-boot Function Reference

Architecture documentation for the orderByName() function in ConditionEvaluationReportMessage.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  1aee3a77_95b1_56dd_7c44_ca2f3ce89b76["orderByName()"]
  00d782c6_832a_014b_e667_2150c67ac7be["getLogMessage()"]
  00d782c6_832a_014b_e667_2150c67ac7be -->|calls| 1aee3a77_95b1_56dd_7c44_ca2f3ce89b76
  ac560ea3_b661_30a9_46eb_a5e07e7ba912["mapToFullyQualifiedNames()"]
  1aee3a77_95b1_56dd_7c44_ca2f3ce89b76 -->|calls| ac560ea3_b661_30a9_46eb_a5e07e7ba912
  41cc5476_ef6c_3893_5cc9_4496aad72e52["get()"]
  1aee3a77_95b1_56dd_7c44_ca2f3ce89b76 -->|calls| 41cc5476_ef6c_3893_5cc9_4496aad72e52
  style 1aee3a77_95b1_56dd_7c44_ca2f3ce89b76 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/logging/ConditionEvaluationReportMessage.java lines 130–147

	private Map<String, ConditionAndOutcomes> orderByName(Map<String, ConditionAndOutcomes> outcomes) {
		MultiValueMap<String, String> map = mapToFullyQualifiedNames(outcomes.keySet());
		List<String> shortNames = new ArrayList<>(map.keySet());
		Collections.sort(shortNames);
		Map<String, ConditionAndOutcomes> result = new LinkedHashMap<>();
		for (String shortName : shortNames) {
			List<String> fullyQualifiedNames = map.get(shortName);
			Assert.state(fullyQualifiedNames != null, "'fullyQualifiedNames' must not be null");
			if (fullyQualifiedNames.size() > 1) {
				fullyQualifiedNames
					.forEach((fullyQualifiedName) -> result.put(fullyQualifiedName, outcomes.get(fullyQualifiedName)));
			}
			else {
				result.put(shortName, outcomes.get(fullyQualifiedNames.get(0)));
			}
		}
		return result;
	}

Domain

Subdomains

Calls

  • get()
  • mapToFullyQualifiedNames()

Called By

Frequently Asked Questions

What does orderByName() do?
orderByName() is a function in the spring-boot codebase.
What does orderByName() call?
orderByName() calls 2 function(s): get, mapToFullyQualifiedNames.
What calls orderByName()?
orderByName() is called by 1 function(s): getLogMessage.

Analyze Your Own Codebase

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

Try Supermodel Free