Android String Empty Check isBlank(String s)

Here you can find the source of isBlank(String s)

Description

is Blank

Declaration

public static boolean isBlank(String s) 

Method Source Code

//package com.java2s;

import java.util.regex.Pattern;

public class Main {
    public static boolean isBlank(String s) {
        if (s == null) {
            return true;
        }//from w  w  w. j  ava 2 s .  c  o  m
        return Pattern.matches("\\s*", s);
    }
}

Related

  1. ckIsEmpty(String s)
  2. isEmptyOrNull(String str)
  3. filterString(String string)
  4. isBlank(String str)
  5. isBlank(EditText editText)
  6. isBlank(String string)
  7. isBlank(String str)