org.zkoss.pivot.impl.util
Class IndexMap<T>

java.lang.Object
  extended by org.zkoss.pivot.impl.util.IndexMap<T>

public class IndexMap<T>
extends java.lang.Object

A map with fly-weight values to save space when the values are expected to repeat.

Author:
simonpai

Constructor Summary
IndexMap()
           
 
Method Summary
 java.util.List<T> getList()
          Return the value list.
 int put(T item)
          Put the value into map and returns the index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 java.util.List<T> getList()
Return the value list.



Copyright © 2013. All Rights Reserved.