gate.creole.gazetteer
Class DefaultGazetteer.CharMap

java.lang.Object
  extended by gate.creole.gazetteer.DefaultGazetteer.CharMap
Enclosing class:
DefaultGazetteer

public static class DefaultGazetteer.CharMap
extends Object

class implementing the map using binary search by char as key to retrieve the corresponding object.


Field Summary
(package private)  char[] itemsKeys
           
(package private)  Object[] itemsObjs
           
 
Constructor Summary
DefaultGazetteer.CharMap()
           
 
Method Summary
(package private)  Object get(char key)
          get the object from the map using the char key
(package private)  Object put(char key, Object value)
          put the object into the char map using the char as the key
(package private)  void resize(int index)
          resize the containers by one, leaving empty element at position 'index'
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

itemsKeys

char[] itemsKeys

itemsObjs

Object[] itemsObjs
Constructor Detail

DefaultGazetteer.CharMap

public DefaultGazetteer.CharMap()
Method Detail

resize

void resize(int index)
resize the containers by one, leaving empty element at position 'index'


get

Object get(char key)
get the object from the map using the char key


put

Object put(char key,
           Object value)
put the object into the char map using the char as the key