Class IndexedLookupTableAssetMap<K,T extends JsonAssetWithMap<K,IndexedLookupTableAssetMap<K,T>>>
java.lang.Object
com.hypixel.hytale.assetstore.AssetMap<K,T>
com.hypixel.hytale.assetstore.map.DefaultAssetMap<K,T>
com.hypixel.hytale.assetstore.map.AssetMapWithIndexes<K,T>
com.hypixel.hytale.assetstore.map.IndexedLookupTableAssetMap<K,T>
public class IndexedLookupTableAssetMap<K,T extends JsonAssetWithMap<K,IndexedLookupTableAssetMap<K,T>>>
extends AssetMapWithIndexes<K,T>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hypixel.hytale.assetstore.map.DefaultAssetMap
DefaultAssetMap.AssetRef<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate T[]private final ReentrantLockprivate final IntFunction<T[]> private final it.unimi.dsi.fastutil.objects.Object2IntMap<K> private final StampedLockprivate final AtomicIntegerFields inherited from class com.hypixel.hytale.assetstore.map.AssetMapWithIndexes
indexedTagStorage, NOT_FOUND, unmodifiableIndexedTagStorageFields inherited from class com.hypixel.hytale.assetstore.map.DefaultAssetMap
assetChainMap, assetChildren, assetMap, assetMapLock, DEFAULT_PACK_KEY, EMPTY_PAIR_ARRAY, packAssetKeys, pathToKeyMap, tagStorage, unmodifiableTagKeys, unmodifiableTagStorage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclear()getAsset(int index) getAssetOrDefault(int index, T def) intintgetIndexOrDefault(K key, int def) intprotected voidputAll(String packKey, AssetCodec<K, T> codec, Map<K, T> loadedAssets, Map<K, Path> loadedKeyToPathMap, Map<K, Set<K>> loadedAssetChildren) private voidprivate voidMethods inherited from class com.hypixel.hytale.assetstore.map.AssetMapWithIndexes
getIndexesForTag, putAssetTag, putAssetTag, putAssetTags, requireReplaceOnRemoveMethods inherited from class com.hypixel.hytale.assetstore.map.DefaultAssetMap
getAsset, getAsset, getAssetCount, getAssetMap, getAssetPack, getChildren, getKeys, getKeysForPack, getKeysForTag, getPath, getPathMap, getTagCount, getTagIndexes, putAssetTag
-
Field Details
-
nextIndex
-
keyToIndexLock
-
keyToIndex
-
arrayProvider
@Nonnull private final IntFunction<T extends JsonAssetWithMap<K,IndexedLookupTableAssetMap<K, arrayProviderT>>[]> -
arrayLock
-
array
-
-
Constructor Details
-
IndexedLookupTableAssetMap
-
-
Method Details
-
getIndex
-
getIndexOrDefault
-
getNextIndex
public int getNextIndex() -
getAsset
-
getAssetOrDefault
-
clear
protected void clear()- Overrides:
clearin classAssetMapWithIndexes<K,T extends JsonAssetWithMap<K, IndexedLookupTableAssetMap<K, T>>>
-
putAll
protected void putAll(@Nonnull String packKey, @Nonnull AssetCodec<K, T> codec, @Nonnull Map<K, T> loadedAssets, @Nonnull Map<K, Path> loadedKeyToPathMap, @Nonnull Map<K, Set<K>> loadedAssetChildren) - Overrides:
putAllin classDefaultAssetMap<K,T extends JsonAssetWithMap<K, IndexedLookupTableAssetMap<K, T>>>
-
putAll0
-
remove
- Overrides:
removein classDefaultAssetMap<K,T extends JsonAssetWithMap<K, IndexedLookupTableAssetMap<K, T>>>
-
remove
protected Set<K> remove(@Nonnull String packKey, @Nonnull Set<K> keys, @Nonnull List<Map.Entry<String, Object>> pathsToReload) - Overrides:
removein classDefaultAssetMap<K,T extends JsonAssetWithMap<K, IndexedLookupTableAssetMap<K, T>>>
-
remove0
-