public static < T > HashSet < T > newHashSet ( final Iterable < ? extends T > iterable ) { final HashSet < T > set = newHashSet ( ) ; for ( final T t : iterable ) { set . add ( t ) ; } return set ; }
new has set from iterable .