cz/vutbr/fit/dudka/SGVis/Data/RelationSet.java

Go to the documentation of this file.
00001 package cz.vutbr.fit.dudka.SGVis.Data;
00002 
00003 import java.util.HashSet;
00004 import java.util.Iterator;
00005 
00010 public class RelationSet
00011   implements
00012     Cloneable,
00013     IContainer<Relation>
00014 {
00015   private HashSet<Relation> set;
00016   public RelationSet() {
00017     set = new HashSet<Relation>();
00018   }
00019   
00024   public RelationSet(RelationSet ref) {
00025     set = new HashSet<Relation>(ref.set);
00026   }
00027   
00031   public RelationSet clone() {
00032     return new RelationSet(this);
00033   }
00034   public void add(Relation relation) {
00035     set.add(relation);
00036   }
00037   public Iterator<Relation> iterator() {
00038     return set.iterator();
00039   }
00040   
00044   public int size() {
00045     return set.size();
00046   }
00047 }

Generated on Sat May 3 22:56:09 2008 for SGVis by  doxygen 1.5.4