Here you can find the source of isBlank(Iterator iterator)
public static boolean isBlank(Iterator iterator)
//package com.java2s; //License from project: Apache License import java.util.Iterator; public class Main { public static boolean isBlank(String str) { return !isPresent(str); }/*ww w . jav a 2 s . co m*/ public static boolean isBlank(Iterator iterator) { return !isPresent(iterator); } public static boolean isPresent(String str) { return str != null && str.length() > 0; } public static boolean isPresent(Iterator iterator) { return iterator != null && iterator.hasNext(); } }