| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| public synchronized int | |
| public synchronized void |
| currentShift | back to summary |
|---|---|
| private final Map<Class<T>, Integer> currentShift | |
| registry | back to summary |
|---|---|
| private final Map<Class<T>, BitSet> registry | |
| FlagRegistry | back to summary |
|---|---|
| public FlagRegistry() | |
| flagsAreValid | back to summary |
|---|---|
| private boolean flagsAreValid(Class<T> klass, int bitIndex) | |
| newFlag | back to summary |
|---|---|
| public synchronized int newFlag(Class<T> klass) Register a new flag for the given class. The bit index for the new flag will be calculated at runtime, by walking parent classes and looking for previously-registered flags. Ancestors should register all their flags before descendants (which means they should not be registered in a static initializer unless the parent is known to have fully run its own static initializers).
| |
| printFlags | back to summary |
|---|---|
| public synchronized void printFlags() | |