ActiveSeries Class — spring-boot Architecture
Architecture documentation for the ActiveSeries class in JsonValueWriter.java from the spring-boot codebase.
Entity Profile
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/json/JsonValueWriter.java lines 387–424
private final class ActiveSeries {
private final Series series;
private int index;
private final Set<String> names = new HashSet<>();
private ActiveSeries(Series series) {
this.series = series;
}
boolean addName(String processedName) {
return this.names.add(processedName);
}
MemberPath updatePath(MemberPath path) {
if (this.series != Series.ARRAY) {
return path;
}
return path.child(this.index);
}
MemberPath restorePath(MemberPath path) {
if (this.series != Series.ARRAY) {
return path;
}
return (path.parent() != null) ? path.parent() : MemberPath.ROOT;
}
void incrementIndexAndAddCommaIfRequired() {
if (this.index > 0) {
append(',');
}
this.index++;
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free