MatchResult Class — spring-boot Architecture
Architecture documentation for the MatchResult class in OnBeanCondition.java from the spring-boot codebase.
Entity Profile
Relationship Graph
Source Code
core/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/OnBeanCondition.java lines 833–914
private static final class MatchResult {
private final Map<String, Collection<String>> matchedAnnotations = new HashMap<>();
private final List<String> matchedNames = new ArrayList<>();
private final Map<String, Collection<String>> matchedTypes = new HashMap<>();
private final List<String> unmatchedAnnotations = new ArrayList<>();
private final List<String> unmatchedNames = new ArrayList<>();
private final List<String> unmatchedTypes = new ArrayList<>();
private final Set<String> namesOfAllMatches = new HashSet<>();
private void recordMatchedName(String name) {
this.matchedNames.add(name);
this.namesOfAllMatches.add(name);
}
private void recordUnmatchedName(String name) {
this.unmatchedNames.add(name);
}
private void recordMatchedAnnotation(String annotation, Collection<String> matchingNames) {
this.matchedAnnotations.put(annotation, matchingNames);
this.namesOfAllMatches.addAll(matchingNames);
}
private void recordUnmatchedAnnotation(String annotation) {
this.unmatchedAnnotations.add(annotation);
}
private void recordMatchedType(BeanType type, Collection<String> matchingNames) {
this.matchedTypes.put(type.name.toString(), matchingNames);
this.namesOfAllMatches.addAll(matchingNames);
}
private void recordUnmatchedType(BeanType type) {
this.unmatchedTypes.add(type.toString());
}
boolean isAllMatched() {
return this.unmatchedAnnotations.isEmpty() && this.unmatchedNames.isEmpty()
&& this.unmatchedTypes.isEmpty();
}
boolean isAnyMatched() {
return (!this.matchedAnnotations.isEmpty()) || (!this.matchedNames.isEmpty())
|| (!this.matchedTypes.isEmpty());
}
Map<String, Collection<String>> getMatchedAnnotations() {
return this.matchedAnnotations;
}
List<String> getMatchedNames() {
return this.matchedNames;
}
Map<String, Collection<String>> getMatchedTypes() {
return this.matchedTypes;
}
List<String> getUnmatchedAnnotations() {
return this.unmatchedAnnotations;
}
List<String> getUnmatchedNames() {
return this.unmatchedNames;
}
List<String> getUnmatchedTypes() {
return this.unmatchedTypes;
}
Set<String> getNamesOfAllMatches() {
return this.namesOfAllMatches;
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free