format() — spring-boot Function Reference
Architecture documentation for the format() function in OptionHandler.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 13652b7d_f9d8_000b_109c_250e4769f917["format()"] 72c188a0_4103_8650_a18d_d0e58bae59e0["options()"] 13652b7d_f9d8_000b_109c_250e4769f917 -->|calls| 72c188a0_4103_8650_a18d_d0e58bae59e0 53b4320f_033e_92f1_9146_59f3f367d7bb["OptionHelpAdapter()"] 13652b7d_f9d8_000b_109c_250e4769f917 -->|calls| 53b4320f_033e_92f1_9146_59f3f367d7bb style 13652b7d_f9d8_000b_109c_250e4769f917 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
cli/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/options/OptionHandler.java lines 153–165
@Override
public String format(Map<String, ? extends OptionDescriptor> options) {
Comparator<OptionDescriptor> comparator = Comparator
.comparing((optionDescriptor) -> optionDescriptor.options().iterator().next());
Set<OptionDescriptor> sorted = new TreeSet<>(comparator);
sorted.addAll(options.values());
for (OptionDescriptor descriptor : sorted) {
if (!descriptor.representsNonOptions()) {
this.help.add(new OptionHelpAdapter(descriptor));
}
}
return "";
}
Domain
Subdomains
Source
Frequently Asked Questions
What does format() do?
format() is a function in the spring-boot codebase.
What does format() call?
format() calls 2 function(s): OptionHelpAdapter, options.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free