org.rutil.collection.map
Class ComparableIndexedMapIndexer<K extends java.lang.Comparable<K>,V extends java.lang.Comparable<V>>

java.lang.Object
  extended by org.rutil.collection.map.AbstractIndexedMapIndexer<K,V>
      extended by org.rutil.collection.map.ComparableIndexedMapIndexer<K,V>
All Implemented Interfaces:
java.io.Serializable, IndexedMapIndexer<K,V>

public class ComparableIndexedMapIndexer<K extends java.lang.Comparable<K>,V extends java.lang.Comparable<V>>
extends AbstractIndexedMapIndexer<K,V>
implements java.io.Serializable

Author:
mohan
See Also:
Serialized Form

Constructor Summary
ComparableIndexedMapIndexer(boolean useKeyIndex)
           
 
Method Summary
protected  int doGetKeyIndex(java.util.List<K> keys, K key)
           
protected  int doGetValueIndex(java.util.List<V> values, V value)
           
 
Methods inherited from class org.rutil.collection.map.AbstractIndexedMapIndexer
find, getIndex, getKeyIndex, getValueIndex, isIndexedByKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComparableIndexedMapIndexer

public ComparableIndexedMapIndexer(boolean useKeyIndex)
Method Detail

doGetKeyIndex

protected int doGetKeyIndex(java.util.List<K> keys,
                            K key)
Specified by:
doGetKeyIndex in class AbstractIndexedMapIndexer<K extends java.lang.Comparable<K>,V extends java.lang.Comparable<V>>

doGetValueIndex

protected int doGetValueIndex(java.util.List<V> values,
                              V value)
Specified by:
doGetValueIndex in class AbstractIndexedMapIndexer<K extends java.lang.Comparable<K>,V extends java.lang.Comparable<V>>