private static final class InternalContext.DependencyStack
extends java.lang.Object
This is a pairwise combination of dependencies and sources, with dependencies or keys on even indices, and sources on odd indices. This structure is to avoid the memory overhead of DependencyAndSource objects, which can add to several tens of megabytes in large applications.
Modifier and Type | Field and Description |
---|---|
private java.lang.Object[] |
elements |
private int |
size |
Modifier | Constructor and Description |
---|---|
private |
DependencyStack() |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.Object dependencyOrKey,
java.lang.Object source) |
java.lang.Object |
get(int i) |
void |
pop() |
int |
size() |