Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

eHashSet.java

00001 package gov.nasa.arc.ase.jpf.jvm.runtime;
00002 
00003 import gov.nasa.arc.ase.jpf.*;
00004 import java.util.*;
00005 import gov.nasa.arc.ase.util.Debug;
00006 
00007 
00008 public class eHashSet extends HashSet{
00009 //#endif RACE
00010 // ifdef RACE
00011   public Object choose(){
00012     Object elem = iterator().next();
00013     remove(elem);
00014     return elem;
00015   }  
00016   public boolean overlaps(eHashSet set){
00017     Iterator set_it = set.iterator();
00018     while (set_it.hasNext()){
00019       if (contains(set_it.next())) return true;
00020     };
00021     return false;
00022   }  
00023   public void print(){
00024     Iterator set_it = iterator();
00025     while (set_it.hasNext()){
00026       ((DESCR)set_it.next()).print();
00027       Debug.print(Debug.ERROR, " ");
00028     };   
00029   }  
00030   public void union(eHashSet set){
00031     Iterator set_it = set.iterator();
00032     while (set_it.hasNext()){
00033       add(set_it.next());
00034     }
00035   }  
00036 }

Generated at Thu Feb 7 06:45:02 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001