code: public static <E> Collection<E> iterable2coll(final Iterable<E> itrbl) {
  	return new AbstractCollection<E>() {
  	    public Iterator<E> iterator() {
  		return itrbl.iterator();
  	    }
  	    public int size() {
  		return DSUtil.iterableSize(itrbl);
  	    }
  	};
      }
docs: Returns an immutable <code>Collection</code> view of an
  <code>Iterable</code>.