Style Type — spring-boot Architecture
Architecture documentation for the Style type/interface in ConditionMessage.java from the spring-boot codebase.
Entity Profile
Source Code
core/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionMessage.java lines 405–447
public enum Style {
/**
* Render with normal styling.
*/
NORMAL {
@Override
protected @Nullable Object applyToItem(@Nullable Object item) {
return item;
}
},
/**
* Render with the item surrounded by quotes.
*/
QUOTE {
@Override
protected @Nullable String applyToItem(@Nullable Object item) {
return (item != null) ? "'" + item + "'" : null;
}
};
public @Nullable Collection<?> applyTo(@Nullable Collection<?> items) {
if (items == null) {
return null;
}
List<Object> result = new ArrayList<>(items.size());
for (Object item : items) {
Object applied = applyToItem(item);
if (applied != null) {
result.add(applied);
}
}
return result;
}
protected abstract @Nullable Object applyToItem(@Nullable Object item);
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free