public abstract class LightDataMap<M extends LightDataMap<M>>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<NibbleArray> |
arrays |
private NibbleArray[] |
recentArrays |
private long[] |
recentPositions |
private boolean |
useCaching |
Modifier | Constructor and Description |
---|---|
protected |
LightDataMap(it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<NibbleArray> arrayStorage) |
Modifier and Type | Method and Description |
---|---|
abstract M |
copy() |
void |
copyArray(long sectionPosIn) |
void |
disableCaching() |
NibbleArray |
getArray(long sectionPosIn) |
boolean |
hasArray(long sectionPosIn) |
void |
invalidateCaches() |
NibbleArray |
removeArray(long sectionPosIn) |
void |
setArray(long sectionPosIn,
NibbleArray array) |
private final long[] recentPositions
private final NibbleArray[] recentArrays
private boolean useCaching
protected final it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<NibbleArray> arrays
protected LightDataMap(it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<NibbleArray> arrayStorage)
public abstract M copy()
public void copyArray(long sectionPosIn)
public boolean hasArray(long sectionPosIn)
@Nullable public NibbleArray getArray(long sectionPosIn)
@Nullable public NibbleArray removeArray(long sectionPosIn)
public void setArray(long sectionPosIn, NibbleArray array)
public void invalidateCaches()
public void disableCaching()