org.hsqldb.lib
Class HashMappedList

java.lang.Object
  extended byorg.hsqldb.store.BaseHashMap
      extended byorg.hsqldb.lib.HashMap
          extended byorg.hsqldb.lib.HashMappedList

public class HashMappedList
extends HashMap

Implementation of an Map which maintains the user-defined order of the keys. Key/value pairs can be accessed by index or by key. Iterators return the keys or values in the index order. This class does not store null keys.

Since:
1.7.2
Version:
1.7.2
Author:
fredt@users

Nested Class Summary
 
Nested classes inherited from class org.hsqldb.store.BaseHashMap
BaseHashMap.BaseHashIterator
 
Field Summary
 
Fields inherited from class org.hsqldb.store.BaseHashMap
hashIndex, intKeyOrValue, intKeyTable, intValueTable, longKeyOrValue, longKeyTable, longValueTable, NO_PURGE, noKeyOrValue, objectKeyOrValue, objectKeyTable, objectValueTable, PURGE_ALL, PURGE_HALF, PURGE_QUARTER, purgePolicy
 
Constructor Summary
HashMappedList()
           
HashMappedList(int initialCapacity)
           
HashMappedList(int initialCapacity, float loadFactor)
           
 
Method Summary
 boolean add(Object key, Object value)
           
 Object get(int index)
           
 int getIndex(Object key)
           
 Object getKey(int index)
           
 Object put(Object key, Object value)
           
 Object remove(int index)
           
 Object remove(Object key)
           
 Object set(int index, Object value)
           
 boolean set(int index, Object key, Object value)
           
 boolean setKey(int index, Object key)
           
 
Methods inherited from class org.hsqldb.lib.HashMap
containsKey, containsValue, get, keySet, putAll, values
 
Methods inherited from class org.hsqldb.store.BaseHashMap
addOrRemove, clear, clear, containsKey, containsKey, getLookup, getLookup, getLookup, getObject, getObject, getObject, isEmpty, rehash, removeLookup, removeObject, removeRow, reset, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HashMappedList

public HashMappedList()

HashMappedList

public HashMappedList(int initialCapacity)
               throws IllegalArgumentException

HashMappedList

public HashMappedList(int initialCapacity,
                      float loadFactor)
               throws IllegalArgumentException
Method Detail

get

public Object get(int index)
           throws IndexOutOfBoundsException
Throws:
IndexOutOfBoundsException

remove

public Object remove(Object key)
Overrides:
remove in class HashMap

remove

public Object remove(int index)
              throws IndexOutOfBoundsException
Throws:
IndexOutOfBoundsException

add

public boolean add(Object key,
                   Object value)

put

public Object put(Object key,
                  Object value)
Overrides:
put in class HashMap

set

public Object set(int index,
                  Object value)
           throws IndexOutOfBoundsException
Throws:
IndexOutOfBoundsException

set

public boolean set(int index,
                   Object key,
                   Object value)
            throws IndexOutOfBoundsException
Throws:
IndexOutOfBoundsException

setKey

public boolean setKey(int index,
                      Object key)
               throws IndexOutOfBoundsException
Throws:
IndexOutOfBoundsException

getKey

public Object getKey(int index)
              throws IndexOutOfBoundsException
Throws:
IndexOutOfBoundsException

getIndex

public int getIndex(Object key)


Copyright © 2001 - 2004 HSQL Development Group. All Rights Reserved.