org.hsqldb.lib
Class HashSet

java.lang.Object
  extended byorg.hsqldb.store.BaseHashMap
      extended byorg.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

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
HashSet()
           
HashSet(int initialCapacity)
           
HashSet(int initialCapacity, float loadFactor)
           
 
Method Summary
 boolean add(Object key)
           
 boolean addAll(Object[] keys)
           
 boolean contains(Object key)
           
 Object get(Object key)
          This method returns the Object that is already in the set and is equal to the argument o.
 Iterator iterator()
           
 boolean remove(Object key)
           
 Object[] toArray(Object[] a)
           
 
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
 
Methods inherited from interface org.hsqldb.lib.Set
clear, equals, hashCode, isEmpty, size
 

Constructor Detail

HashSet

public HashSet()

HashSet

public HashSet(int initialCapacity)
        throws IllegalArgumentException

HashSet

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

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.