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

collate() — spring-boot Function Reference

Architecture documentation for the collate() function in Configurations.java from the spring-boot codebase.

Function java GradlePlugin RunTasks calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  c9c8b434_edc2_9432_25a9_babb05b23c0d["collate()"]
  8d386d5c_13fd_f3fe_8431_c60ef6e3f408["getClasses()"]
  8d386d5c_13fd_f3fe_8431_c60ef6e3f408 -->|calls| c9c8b434_edc2_9432_25a9_babb05b23c0d
  f03673ce_5147_5d88_ba7c_2beffa466d87["sortConfigurations()"]
  c9c8b434_edc2_9432_25a9_babb05b23c0d -->|calls| f03673ce_5147_5d88_ba7c_2beffa466d87
  34ca8180_63a5_de52_a65f_820bda834d6d["merge()"]
  c9c8b434_edc2_9432_25a9_babb05b23c0d -->|calls| 34ca8180_63a5_de52_a65f_820bda834d6d
  style c9c8b434_edc2_9432_25a9_babb05b23c0d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/context/annotation/Configurations.java lines 166–177

	public static List<Configurations> collate(Collection<Configurations> configurations) {
		LinkedList<Configurations> collated = new LinkedList<>();
		for (Configurations configuration : sortConfigurations(configurations)) {
			if (collated.isEmpty() || collated.getLast().getClass() != configuration.getClass()) {
				collated.add(configuration);
			}
			else {
				collated.set(collated.size() - 1, collated.getLast().merge(configuration));
			}
		}
		return collated;
	}

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does collate() do?
collate() is a function in the spring-boot codebase.
What does collate() call?
collate() calls 2 function(s): merge, sortConfigurations.
What calls collate()?
collate() is called by 1 function(s): getClasses.

Analyze Your Own Codebase

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

Try Supermodel Free