Here you can find the source of emptyString(Object s)
Parameter | Description |
---|---|
s | An input Object, expected to be a String. |
public static boolean emptyString(Object s)
//package com.java2s; //License from project: Apache License public class Main { /** *************************************************************** * @param s An input Object, expected to be a String. * @return true if s == null or s is an empty String, else false. *//*from w w w . ja v a 2 s . co m*/ public static boolean emptyString(Object s) { return ((s == null) || ((s instanceof String) && s.equals(""))); } }