net.ontopia.utils
Class MapIndex

java.lang.Object
  extended by net.ontopia.utils.MapIndex
All Implemented Interfaces:
ClearableIF, LookupIndexIF

public class MapIndex
extends java.lang.Object
implements LookupIndexIF, ClearableIF

INTERNAL: A non-synchronized lookup index adapter for Map instances.


Field Summary
protected  java.util.Map map
           
 
Constructor Summary
MapIndex(java.util.Map map)
           
 
Method Summary
 void clear()
           
 java.lang.Object get(java.lang.Object key)
           
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
           
 java.lang.Object remove(java.lang.Object key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

map

protected final java.util.Map map
Constructor Detail

MapIndex

public MapIndex(java.util.Map map)
Method Detail

get

public java.lang.Object get(java.lang.Object key)
Specified by:
get in interface LookupIndexIF

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
Specified by:
put in interface LookupIndexIF

remove

public java.lang.Object remove(java.lang.Object key)
Specified by:
remove in interface LookupIndexIF

clear

public void clear()
Specified by:
clear in interface ClearableIF


Copyright © 2000-2012 Ontopia.