public static boolean isEmpty ( Iterable < ? > iterable ) { if ( iterable instanceof Collection ) { return ( ( Collection < ? > ) iterable ) . isEmpty ( ) ; } return ! iterable . iterator ( ) . hasNext ( ) ; }
Determines if the given iterable contains no elements .