public static boolean isBlank(Object value) {
        if (value instanceof Collection) {
            return ((Collection) value).isEmpty();
        } else if (value instanceof String) {
            return "".equals(value.toString().trim());
        } else {
            return value == null;
        }
    }
public static boolean isBlank ( Object value ) { if ( value instanceof Collection ) { return ( ( Collection ) value ) . isEmpty ( ) ; } else if ( value instanceof String ) { return "" . equals ( value . toString ( ) . trim ( ) ) ; } else { return value == null ; } }
Blank

@param value value
@return boolean