structure
Class AbstractSet

java.lang.Object
  extended by structure.AbstractStructure
      extended by structure.AbstractSet
All Implemented Interfaces:
Set, Structure
Direct Known Subclasses:
SetList, SetVector

public abstract class AbstractSet
extends AbstractStructure
implements Set

Implementation of a set of elements. As with the mathematical object, the elements of the set are not duplicated. No order is implied or enforced in this structure.


Constructor Summary
AbstractSet()
           
 
Method Summary
 void addAll(Structure other)
          Union other set into this set.
 boolean containsAll(Structure other)
          Check to see if this set is contained in the other structure.
 void removeAll(Structure other)
          Computes the difference between this set and the other structure
 void retainAll(Structure other)
          Computes the intersection between this set and the other structure.
 
Methods inherited from class structure.AbstractStructure
contains, elements, hashCode, isEmpty, values
 
Methods inherited from class java.lang.Object
equals, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface structure.Structure
add, clear, contains, elements, isEmpty, iterator, remove, size, values
 

Constructor Detail

AbstractSet

public AbstractSet()
Method Detail

addAll

public void addAll(Structure other)
Union other set into this set.

Specified by:
addAll in interface Set

containsAll

public boolean containsAll(Structure other)
Check to see if this set is contained in the other structure.

Specified by:
containsAll in interface Set

removeAll

public void removeAll(Structure other)
Computes the difference between this set and the other structure

Specified by:
removeAll in interface Set

retainAll

public void retainAll(Structure other)
Computes the intersection between this set and the other structure.

Specified by:
retainAll in interface Set