Iterable是空的
//package com.nowjava;// 来 自 nowjava - 时代Java public class Main { /** * @param i * An {@link Iterable} to check. * @return <code>true</code> if the parameter is <code>null</code> or it has * an empty item set. */ public static boolean isEmpty(Iterable<?> i) { return i == null || !i.iterator().hasNext(); } }