Home / Class/ Sorter Class — spring-boot Architecture

Sorter Class — spring-boot Architecture

Architecture documentation for the Sorter class in ConfigurationsTests.java from the spring-boot codebase.

Entity Profile

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/annotation/ConfigurationsTests.java lines 129–141

	static class Sorter implements UnaryOperator<Collection<Class<?>>> {

		static final Sorter instance = new Sorter();

		@Override
		public Collection<Class<?>> apply(Collection<Class<?>> classes) {
			ArrayList<Class<?>> sorted = new ArrayList<>(classes);
			sorted.sort(Comparator.comparing(ClassUtils::getShortName));
			return sorted;

		}

	}

Analyze Your Own Codebase

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

Try Supermodel Free