public class PackedIntegerArray extends Object
Modifier and Type | Field and Description |
---|---|
private int |
elementBits |
private static int[] |
field_24078 |
private int |
field_24079 |
private int |
field_24080 |
private int |
field_24081 |
private int |
field_24082 |
private long |
maxValue |
private int |
size |
private long[] |
storage |
Constructor and Description |
---|
PackedIntegerArray(int elementBits,
int size) |
PackedIntegerArray(int elementBits,
int size,
long[] storage) |
Modifier and Type | Method and Description |
---|---|
void |
forEach(IntConsumer consumer) |
int |
get(int index) |
int |
getSize() |
long[] |
getStorage() |
private int |
method_27284(int int2) |
void |
set(int index,
int value) |
int |
setAndGetOldValue(int index,
int value) |
private static final int[] field_24078
private final long[] storage
private final int elementBits
private final long maxValue
private final int size
private final int field_24079
private final int field_24080
private final int field_24081
private final int field_24082
public PackedIntegerArray(int elementBits, int size)
public PackedIntegerArray(int elementBits, int size, @Nullable long[] storage)
private int method_27284(int int2)
public int setAndGetOldValue(int index, int value)
public void set(int index, int value)
public int get(int index)
public long[] getStorage()
public int getSize()
public void forEach(IntConsumer consumer)