java.util.Map , but for special case of key always being
java.lang.String and using more compact (and memory-access
friendly) hashing scheme. Assumption is also that keys are typically
intern()ed.
Generics are not used to avoid bridge methods and since these maps are not exposed as part of external API.
| Modifier and Type | Field and Description |
|---|---|
| private final Object[] | |
| private final int | |
| private final int | |
| private static final CompactStringObjectMap | EMPTY
Shared instance that can be used when there are no contents to Map. |
| private static final long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private final Object | |
| public static <T> CompactStringObjectMap | |
| public Object | |
| public Object | |
| private static final int | |
| public List |
| _hashArea | back to summary |
|---|---|
| private final Object[] _hashArea | |
| _hashMask | back to summary |
|---|---|
| private final int _hashMask | |
| _spillCount | back to summary |
|---|---|
| private final int _spillCount | |
| EMPTY | back to summary |
|---|---|
| private static final CompactStringObjectMap EMPTY Shared instance that can be used when there are no contents to Map. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| CompactStringObjectMap | back to summary |
|---|---|
| private CompactStringObjectMap(int hashMask, int spillCount, Object[] hashArea) | |
| _find2 | back to summary |
|---|---|
| private final Object _find2(String key, int slot, Object match) | |
| construct | back to summary |
|---|---|
| public static <T> CompactStringObjectMap construct(Map<String, T> all) | |
| find | back to summary |
|---|---|
| public Object find(String key) | |
| findCaseInsensitive | back to summary |
|---|---|
| public Object findCaseInsensitive(String key) | |
| findSize | back to summary |
|---|---|
| private static final int findSize(int size) | |
| keys | back to summary |
|---|---|
| public List | |