Module gg.xp.xivapi

Class KeyedAlikeMapFactory<K>

java.lang.Object
gg.xp.xivapi.collections.KeyedAlikeMapFactory<K>
Type Parameters:
K - The key type.

public class KeyedAlikeMapFactory<K> extends Object
KeyedAlikeMapFactory is used to take a set of allowed keys, and produce many KeyedAlikeMap instances from it.

To use, specify your key set in the constructor. Then, use create() in either form to create a map instance. Every KeyedAlikeMap instance created by a KeyedAlikeMapFactory will share the same underlying map, and store the actual values in an array. This saves memory in a similar manner to Python's "slots".

See Also:
  • Constructor Details

    • KeyedAlikeMapFactory

      public KeyedAlikeMapFactory(Set<K> keys)
  • Method Details