Class IndexMap<T>

java.lang.Object
org.zkoss.pivot.impl.util.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 Details

    • IndexMap

      public IndexMap()
  • Method Details

    • 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.