PatternItr Class — netty Architecture
Architecture documentation for the PatternItr class in AllocationPatternSimulator.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 9203b5e5_7cca_6848_e51d_d042def3a7ff["PatternItr"] c9fb080e_e943_3d97_be1a_c8039258e2c5["AllocationPatternSimulator.java"] 9203b5e5_7cca_6848_e51d_d042def3a7ff -->|defined in| c9fb080e_e943_3d97_be1a_c8039258e2c5 8e3a14de_b803_b0d4_33ad_7365ffaf7041["PatternItr()"] 9203b5e5_7cca_6848_e51d_d042def3a7ff -->|method| 8e3a14de_b803_b0d4_33ad_7365ffaf7041 fbdbae8e_fa62_3fda_6ff0_a53ee2df68fc["next()"] 9203b5e5_7cca_6848_e51d_d042def3a7ff -->|method| fbdbae8e_fa62_3fda_6ff0_a53ee2df68fc 5ae69ead_3533_e39b_2f7e_2fd0c81649db["size()"] 9203b5e5_7cca_6848_e51d_d042def3a7ff -->|method| 5ae69ead_3533_e39b_2f7e_2fd0c81649db d23edae7_2c53_ffdb_1d3e_0c3de852f9a6["frequency()"] 9203b5e5_7cca_6848_e51d_d042def3a7ff -->|method| d23edae7_2c53_ffdb_1d3e_0c3de852f9a6
Relationship Graph
Source Code
microbench/src/main/java/io/netty/buffer/AllocationPatternSimulator.java lines 664–697
private static final class PatternItr {
private final int[] pattern;
private int index;
private boolean hasData;
private int size;
private int frequency;
PatternItr(int[] pattern) {
this.pattern = pattern;
}
public boolean next() {
if (index < pattern.length) {
size = pattern[index++];
frequency = pattern[index++];
return hasData = true;
}
return hasData = false;
}
public int size() {
if (!hasData) {
throw new IllegalStateException();
}
return size;
}
public int frequency() {
if (!hasData) {
throw new IllegalStateException();
}
return frequency;
}
}
Source
Frequently Asked Questions
What is the PatternItr class?
PatternItr is a class in the netty codebase, defined in microbench/src/main/java/io/netty/buffer/AllocationPatternSimulator.java.
Where is PatternItr defined?
PatternItr is defined in microbench/src/main/java/io/netty/buffer/AllocationPatternSimulator.java at line 664.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free