

import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;

public class Relvar {

    private Collection<Tuple> store = new HashSet<Tuple>();

    public void insert(Tuple t) {
    	store.add(t);
    }
	
	public RelationPipelined getRelationPipelined() {
		return new RelationPipelined() {
			Iterator<Tuple> tuples = store.iterator();
			public Tuple getNext() {
				if (tuples.hasNext())
					return tuples.next();
				return null;
			}
		};
	}
	
	public RelationSimple getRelationSimple() {
		RelationSimple r = new RelationSimple();
		r.add(store);
		return r;
	}

}

@@ -1,9 +1,8 @@
-%0A
 %0Aimport 
@@ -100,20 +100,17 @@
 lvar %7B%0A%0A
-    
+%09
 private 
@@ -158,20 +158,17 @@
 le%3E();%0A%0A
-    
+%09
 public v
@@ -189,20 +189,17 @@
 le t) %7B%0A
-    
+%09
 %09store.a
@@ -209,15 +209,11 @@
 t);%0A
-    
+%09
 %7D%0A
-%09
 %0A%09pu
@@ -341,16 +341,17 @@
 ator();%0A
+%0A
 %09%09%09publi
@@ -453,17 +453,16 @@
 %09%09%7D;%0A%09%7D%0A
-%09
 %0A%09public

Tweak formatting.