Java Iterator isBlank(Iterator iterator)

Here you can find the source of isBlank(Iterator iterator)

Description

is Blank

License

Apache License

Declaration

public static boolean isBlank(Iterator iterator) 

Method Source Code

//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();
    }
}

Related

  1. hasNextIteration(final Iterator iterator)
  2. hasNexts(List> heads)
  3. hasOpenIteratorsRequiringOpenConnection()
  4. hex(Iterator it)
  5. implode(Iterator it)
  6. isIterator(Class clazz)
  7. isPrefixOf(Iterator pref, Iterator target)
  8. iterable(Iterator iterator)
  9. length(Iterator iter)