org.hsqldb.lib
Class HashMappedList
java.lang.Object
org.hsqldb.store.BaseHashMap
org.hsqldb.lib.HashMap
org.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
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 |
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 |
HashMappedList
public HashMappedList()
HashMappedList
public HashMappedList(int initialCapacity)
throws IllegalArgumentException
HashMappedList
public HashMappedList(int initialCapacity,
float loadFactor)
throws IllegalArgumentException
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.