Package net.dermetfan.gdx.utils
Class DualIntMap<V>
java.lang.Object
net.dermetfan.gdx.utils.DualIntMap<V>
an
IntMap and ObjectIntMap holding each others contents in reverse for fast retrieval of both keys and values- Since:
- 0.6.0
-
Constructor Summary
ConstructorsConstructorDescriptionDualIntMap(int initialCapacity) DualIntMap(int initialCapacity, float loadFactor) DualIntMap(com.badlogic.gdx.utils.IntMap<V> map) DualIntMap(DualIntMap<V> map) -
Method Summary
-
Constructor Details
-
DualIntMap
public DualIntMap()- See Also:
-
DualIntMap
public DualIntMap(int initialCapacity) - See Also:
-
DualIntMap
public DualIntMap(int initialCapacity, float loadFactor) - See Also:
-
DualIntMap
- See Also:
-
DualIntMap
- Parameters:
map- the map to copy
-
-
Method Details
-
put
- See Also:
-
getKey
- Returns:
- the key of the given value as
IntMap.findKey(Object, boolean, int)would return
-
getValue
- See Also:
-
removeKey
- See Also:
-
removeValue
like whatintMap.remove(intMap.findKey(value, true, defaultValue))would do -
getKeyToValue
- Returns:
- The
keyToValue. Only use this if you know what you're doing! - Since:
- 0.7.1
-
getValueToKey
- Returns:
- The
valueToKey. Only use this if you know what you're doing! - Since:
- 0.7.1
-