com.oxygenxml.validate.nvdl
Class Hashset

java.lang.Object
  extended by com.oxygenxml.validate.nvdl.Hashset

 class Hashset
extends Object

Utility class, stores a set of objects. It uses a Hashtable for internal storage.


Field Summary
private  Hashtable table
          The internal storage, a hashtable.
 
Constructor Summary
Hashset()
           
 
Method Summary
(package private)  void add(Object key)
          Adds an object to this set.
(package private)  void addAll(Hashset set)
          Adds all the objects from another set to this set - union.
(package private)  void clear()
          Removes all the objects from this set.
(package private)  boolean contains(Object key)
          Test if an object belongs to this set or not.
(package private)  Enumeration members()
          Get an enumeration will all the objects from this set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

table

private final Hashtable table
The internal storage, a hashtable.

Constructor Detail

Hashset

Hashset()
Method Detail

contains

boolean contains(Object key)
Test if an object belongs to this set or not.

Parameters:
key - The object.
Returns:
true if the object is contained in this set.

add

void add(Object key)
Adds an object to this set.

Parameters:
key - The object to be added.

addAll

void addAll(Hashset set)
Adds all the objects from another set to this set - union.

Parameters:
set - The other set.

clear

void clear()
Removes all the objects from this set.


members

Enumeration members()
Get an enumeration will all the objects from this set.

Returns:
an enumeration with all the objects from this set.