private < T > Iterator < T > emptyIt ( ) { return new Iterator < T > ( ) { @ Override public boolean hasNext ( ) { return false ; } @ Override public T next ( ) { return null ; } } ; }
An empty iterator with hasNext always false .