| Modifier and Type | Field and Description |
|---|---|
| private int[] | data
Keys and values |
| private final float | fillFactor
Fill factor, must be between (0 and 1) |
| private int | mask1
Mask to calculate the original position |
| private int | |
| public static final int | |
| private int | resizeThreshold
We will resize a map once it reaches this size |
| private int | size
Current map size |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static int | |
| public int | |
| public int | |
| public static long | |
| public int | |
| public void | |
| private void | |
| public int |
| data | back to summary |
|---|---|
| private int[] data Keys and values | |
| fillFactor | back to summary |
|---|---|
| private final float fillFactor Fill factor, must be between (0 and 1) | |
| mask1 | back to summary |
|---|---|
| private int mask1 Mask to calculate the original position | |
| mask2 | back to summary |
|---|---|
| private int mask2 | |
| NO_VALUE | back to summary |
|---|---|
| public static final int NO_VALUE | |
| resizeThreshold | back to summary |
|---|---|
| private int resizeThreshold We will resize a map once it reaches this size | |
| size | back to summary |
|---|---|
| private int size Current map size | |
| EntryMap | back to summary |
|---|---|
| public EntryMap(int size, float fillFactor) | |
| arraySize | back to summary |
|---|---|
| public static int arraySize(final int expected, final float f) | |
| firstToken | back to summary |
|---|---|
| public int firstToken(int hash) | |
| getIndexByToken | back to summary |
|---|---|
| public int getIndexByToken(int token) | |
| nextPowerOfTwo | back to summary |
|---|---|
| public static long nextPowerOfTwo(long x) | |
| nextToken | back to summary |
|---|---|
| public int nextToken(int hash, int token) | |
| put | back to summary |
|---|---|
| public void put(int hash, int index) | |
| rehash | back to summary |
|---|---|
| private void rehash(final int newCapacity) | |
| size | back to summary |
|---|---|
| public int size() | |