org.hsqldb.lib
Class HashSet
java.lang.Object
org.hsqldb.store.BaseHashMap
org.hsqldb.lib.HashSet
- All Implemented Interfaces:
- Collection, Set
- public class HashSet
- extends BaseHashMap
- implements Set
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 |
Constructor Summary |
HashSet()
|
HashSet(int initialCapacity)
|
HashSet(int initialCapacity,
float loadFactor)
|
Methods inherited from class org.hsqldb.store.BaseHashMap |
addOrRemove, clear, clear, containsKey, containsKey, containsKey, containsValue, 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 |
HashSet
public HashSet()
HashSet
public HashSet(int initialCapacity)
throws IllegalArgumentException
HashSet
public HashSet(int initialCapacity,
float loadFactor)
throws IllegalArgumentException
contains
public boolean contains(Object key)
- Specified by:
contains
in interface Set
get
public Object get(Object key)
- Description copied from interface:
Set
- This method returns the Object that is already in the set and is
equal to the argument o.
- Specified by:
get
in interface Set
add
public boolean add(Object key)
- Specified by:
add
in interface Set
addAll
public boolean addAll(Object[] keys)
remove
public boolean remove(Object key)
- Specified by:
remove
in interface Set
toArray
public Object[] toArray(Object[] a)
iterator
public Iterator iterator()
- Specified by:
iterator
in interface Set
Copyright © 2001 - 2004 HSQL Development Group. All Rights Reserved.