All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.unit16.z.TrivialIterable Maven / Gradle / Ivy

package com.unit16.z;

import java.util.Iterator;

public final class TrivialIterable
implements Iterable
{
	private final Iterator t;
	private TrivialIterable(Iterator t_) { t = t_; }

	@Override public Iterator iterator() { return t; }

	public static  TrivialIterable build(Iterator i)
	{
		return new TrivialIterable<>(i);
	}
}