Class IndexMap<T>


  • public class IndexMap<T>
    extends Object
    A map with fly-weight values to save space when the values are expected to repeat.
    Author:
    simonpai
    • Constructor Detail

      • IndexMap

        public IndexMap()
    • Method Detail

      • put

        public int put​(T item)
        Put the value into map and returns the index. If the value is already contained in the map, the old index is return.
      • getList

        public List<T> getList()
        Return the value list.