src/org/kocakosm/pitaya/collection/Iterables.java
public static <T> Set<T> toSet(Iterable<? extends T> iterable)
	{
		Set<T> set = new LinkedHashSet<T>();
		for (T e : iterable) {
			set.add(e);
		}
		return set;
	}
public static <T> Set<T> toSet(Iterable<? extends T> iterable)
	{
		Set<T> set = new LinkedHashSet<T>();
		for (T e : iterable) {
			set.add(e);
		}
		return set;
	}
public static < T > Set < T > toSet ( Iterable < ? extends T > iterable ) { Set < T > set = new LinkedHashSet < T > ( ) ; for ( T e : iterable ) { set . add ( e ) ; } return set ; }
Returns a {@code Set} containing all the given {@code Iterable}'s
elements. The returned {@code Set} has the same iteration order as
the source {@code Iterable}.

@param <T> the type of the returned {@code Set}'s elements.
@param iterable the source {@code Iterable}.

@return the {@code Set} created from the given {@code Iterable}.

@throws NullPointerException if {@code iterable} is {@code null}.
Returns a { @code Set } containing all the given { @code Iterable } s elements . The returned { @code Set } has the same iteration order as the source { @code Iterable } .