Class SpatialLongSet.InternalMap
java.lang.Object
it.unimi.dsi.fastutil.longs.AbstractLong2LongFunction
it.unimi.dsi.fastutil.longs.AbstractLong2LongMap
it.unimi.dsi.fastutil.longs.AbstractLong2LongSortedMap
it.unimi.dsi.fastutil.longs.Long2LongLinkedOpenHashMap
net.minecraft.world.level.lighting.SpatialLongSet.InternalMap
- All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<Long,Long>, it.unimi.dsi.fastutil.Hash, it.unimi.dsi.fastutil.longs.Long2LongFunction, it.unimi.dsi.fastutil.longs.Long2LongMap, it.unimi.dsi.fastutil.longs.Long2LongSortedMap, Serializable, Cloneable, Function<Long, Long>, LongUnaryOperator, Map<Long, Long>, SequencedMap<Long, Long>, SortedMap<Long, Long>
- Enclosing class:
SpatialLongSet
protected static class SpatialLongSet.InternalMap
extends it.unimi.dsi.fastutil.longs.Long2LongLinkedOpenHashMap
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class it.unimi.dsi.fastutil.longs.AbstractLong2LongSortedMap
it.unimi.dsi.fastutil.longs.AbstractLong2LongSortedMap.KeySetIterator, it.unimi.dsi.fastutil.longs.AbstractLong2LongSortedMap.ValuesCollection, it.unimi.dsi.fastutil.longs.AbstractLong2LongSortedMap.ValuesIteratorNested classes/interfaces inherited from class it.unimi.dsi.fastutil.longs.AbstractLong2LongMap
it.unimi.dsi.fastutil.longs.AbstractLong2LongMap.BasicEntry, it.unimi.dsi.fastutil.longs.AbstractLong2LongMap.BasicEntrySetNested classes/interfaces inherited from interface it.unimi.dsi.fastutil.Hash
it.unimi.dsi.fastutil.Hash.Strategy<K>Nested classes/interfaces inherited from interface it.unimi.dsi.fastutil.longs.Long2LongMap
it.unimi.dsi.fastutil.longs.Long2LongMap.Entry, it.unimi.dsi.fastutil.longs.Long2LongMap.FastEntrySetNested classes/interfaces inherited from interface it.unimi.dsi.fastutil.longs.Long2LongSortedMap
it.unimi.dsi.fastutil.longs.Long2LongSortedMap.FastSortedEntrySet -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate intprivate final intprivate static final longprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intFields inherited from class it.unimi.dsi.fastutil.longs.Long2LongLinkedOpenHashMap
containsNullKey, entries, f, first, key, keys, last, link, mask, maxFill, minN, n, size, value, valuesFields inherited from class it.unimi.dsi.fastutil.longs.AbstractLong2LongFunction
defRetValueFields inherited from interface it.unimi.dsi.fastutil.Hash
DEFAULT_GROWTH_FACTOR, DEFAULT_INITIAL_SIZE, DEFAULT_LOAD_FACTOR, FAST_LOAD_FACTOR, FREE, OCCUPIED, PRIMES, REMOVED, VERY_FAST_LOAD_FACTOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddBit(long key) (package private) static longgetFullKey(long outerKey, int innerKey) (package private) static intgetInnerKey(long key) (package private) static longgetOuterKey(long key) protected voidrehash(int newN) booleanremoveBit(long key) longprivate booleanremoveFromEntry(int pos, long bitMask) private booleanremoveFromNullEntry(long bitMask) private booleanreplaceBit(int pos, long bitMask) Methods inherited from class it.unimi.dsi.fastutil.longs.Long2LongLinkedOpenHashMap
addTo, clear, clone, comparator, compute, computeIfAbsent, computeIfAbsent, computeIfAbsentNullable, computeIfPresent, containsKey, containsValue, ensureCapacity, firstLongKey, fixPointers, fixPointers, get, getAndMoveToFirst, getAndMoveToLast, getOrDefault, hashCode, headMap, isEmpty, keySet, lastLongKey, long2LongEntrySet, merge, mergeLong, put, putAll, putAndMoveToFirst, putAndMoveToLast, putIfAbsent, remove, remove, removeFirstLong, removeLastLong, replace, replace, shiftKeys, size, subMap, tailMap, trim, trim, valuesMethods inherited from class it.unimi.dsi.fastutil.longs.AbstractLong2LongMap
equals, mergeLong, toStringMethods inherited from class it.unimi.dsi.fastutil.longs.AbstractLong2LongFunction
defaultReturnValue, defaultReturnValueMethods inherited from interface it.unimi.dsi.fastutil.Function
applyMethods inherited from interface it.unimi.dsi.fastutil.longs.Long2LongFunction
andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, applyAsLong, compose, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShortMethods inherited from interface it.unimi.dsi.fastutil.longs.Long2LongMap
compute, computeIfAbsent, computeIfAbsentPartial, computeIfPresent, containsKey, containsValue, defaultReturnValue, defaultReturnValue, forEach, forEach, get, getOrDefault, merge, mergeLong, put, putIfAbsent, remove, remove, replace, replaceMethods inherited from interface it.unimi.dsi.fastutil.longs.Long2LongSortedMap
entrySet, firstKey, headMap, lastKey, subMap, tailMapMethods inherited from interface LongUnaryOperator
andThen, composeMethods inherited from interface Map
containsKey, equals, get, getOrDefault, put, remove, replaceAllMethods inherited from interface SequencedMap
firstEntry, lastEntry, pollFirstEntry, pollLastEntry, sequencedEntrySet, sequencedKeySet, sequencedValues
-
Field Details
-
X_BITS
private static final int X_BITS -
Z_BITS
private static final int Z_BITS -
Y_BITS
private static final int Y_BITS -
Y_OFFSET
private static final int Y_OFFSET- See Also:
-
Z_OFFSET
private static final int Z_OFFSET -
X_OFFSET
private static final int X_OFFSET -
OUTER_MASK
private static final long OUTER_MASK -
lastPos
private int lastPos -
lastOuterKey
private long lastOuterKey -
minSize
private final int minSize
-
-
Constructor Details
-
InternalMap
public InternalMap(int expected, float f)
-
-
Method Details
-
getOuterKey
static long getOuterKey(long key) -
getInnerKey
static int getInnerKey(long key) -
getFullKey
static long getFullKey(long outerKey, int innerKey) -
addBit
public boolean addBit(long key) -
replaceBit
private boolean replaceBit(int pos, long bitMask) -
removeBit
public boolean removeBit(long key) -
removeFromNullEntry
private boolean removeFromNullEntry(long bitMask) -
removeFromEntry
private boolean removeFromEntry(int pos, long bitMask) -
removeFirstBit
public long removeFirstBit() -
rehash
protected void rehash(int newN) - Overrides:
rehashin classit.unimi.dsi.fastutil.longs.Long2LongLinkedOpenHashMap
-