public class RegistryNamespaced<K,V> extends RegistrySimple<K,V> implements IObjectIntIterable<V>
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<V,K> |
inverseObjectRegistry |
protected IntIdentityHashBiMap<V> |
underlyingIntegerMap |
registryObjects
Constructor and Description |
---|
RegistryNamespaced() |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(K key) |
protected java.util.Map<K,V> |
createUnderlyingMap() |
int |
getIDForObject(V value) |
K |
getNameForObject(V value) |
V |
getObject(K name) |
V |
getObjectById(int id) |
java.util.Iterator<V> |
iterator() |
void |
register(int id,
K key,
V value) |
getKeys, getRandomObject, putObject
protected final IntIdentityHashBiMap<V> underlyingIntegerMap
protected java.util.Map<K,V> createUnderlyingMap()
createUnderlyingMap
in class RegistrySimple<K,V>
public boolean containsKey(K key)
containsKey
in class RegistrySimple<K,V>
public int getIDForObject(V value)
@Nullable public V getObjectById(int id)