package org.psjava.util;

import java.util.Iterator;

public class VarargsIterable {

	public static <T> Iterable<T> create(final T... data) {
		return new Iterable<T>() {
			@Override
			public Iterator<T> iterator() {
				return VarargsIterator.create(data);
			}
		};
	}

	private VarargsIterable() {
	}

}

@@ -79,17 +79,20 @@
 able %7B%0A%0A
-%09
+    
 public s
@@ -143,141 +143,240 @@
 ) %7B%0A
-%09%09return new Iterable%3CT%3E() %7B%0A%09%09%09@Override%0A%09%09%09public Iterator%3CT%3E iterator() %7B%0A%09%09%09%09return VarargsIterator.create(data);%0A%09%09%09%7D%0A%09%09%7D;%0A%09%7D%0A%0A%09
+        return IterableUsingIteratorFactory.create(new IteratorFactory%3CT%3E() %7B%0A            @Override%0A            public Iterator%3CT%3E create() %7B%0A                return VarargsIterator.create(data);%0A            %7D%0A        %7D);%0A    %7D%0A%0A    
 priv
@@ -403,9 +403,12 @@
 ) %7B%0A
-%09
+    
 %7D%0A%0A%7D

improve debugging log